CryptoStringExtensions..::..Decrypt Method (String, X509Certificate2)
Decrypts the specified certificate.
Namespace:
SystemAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
public static string Decrypt( this string text, X509Certificate2 certificate )
Return Value
UTF8 string clear textExceptions
| Exception | Condition |
|---|---|
| ArgumentException | '{nameof(text)}' cannot be null or empty. - text |
| ArgumentException | '{nameof(text)}' is not base 64 encoded probably not valid. - text |
| ArgumentNullException | certificate is not provided |
| CryptographicException | certificate {certificate.FriendlyName} doesn't have a private key |

