public Decrypt ( EncryptedValue encryptedValue, IIncomingLogicalMessageContext context ) : string | ||
encryptedValue | EncryptedValue | |
context | IIncomingLogicalMessageContext | |
Résultat | string |
public string Decrypt(EncryptedValue encryptedValue, IIncomingLogicalMessageContext context)
{
if (encryptedValue.Base64Iv == hardcodedValue.Base64Iv && encryptedValue.EncryptedBase64Value == hardcodedValue.EncryptedBase64Value)
return "A secret";
throw new InvalidOperationException("Failed to decrypt");
}