ISecretProtector
Interface in Oadm.Sdk.Plugins · Oadm.Sdk.dll
Server-side encryption for secrets a plugin persists. Values never leave the server.
public interface ISecretProtectorGuide: Core plugins and pages
Methods
Section titled “Methods”Protect
Section titled “Protect”string Protect(string plaintext, string purpose)Encrypts plaintext; purpose is bound as associated data (e.g. a record id).
Unprotect
Section titled “Unprotect”string Unprotect(string protectedValue, string purpose)Decrypts a value of ISecretProtector.Protect with the same purpose. Throws when it was tampered with.