Skip to content

ISecretProtector

Interface in Oadm.Sdk.Plugins · Oadm.Sdk.dll

Server-side encryption for secrets a plugin persists. Values never leave the server.

public interface ISecretProtector

Guide: Core plugins and pages

string Protect(string plaintext, string purpose)

Encrypts plaintext; purpose is bound as associated data (e.g. a record id).

string Unprotect(string protectedValue, string purpose)

Decrypts a value of ISecretProtector.Protect with the same purpose. Throws when it was tampered with.