Class EncryptionUtility
Utility class that support certificate based encryption/decryption
Inheritance
System.Object
EncryptionUtility
Namespace: PnP.Framework.Utilities
Assembly: PnP.Framework.dll
Syntax
public static class EncryptionUtility : object
Methods
Decrypt(String, String)
Decrypt a piece of text based on a given certificate
Declaration
public static string Decrypt(string stringToDecrypt, string thumbPrint)
Parameters
System. Text to decrypt |
System. Thumbprint of the certificate to use |
Returns
System. Decrypted text |
Encrypt(String, String)
Encrypt a piece of text based on a given certificate
Declaration
public static string Encrypt(string stringToEncrypt, string thumbPrint)
Parameters
System. Text to encrypt |
System. Thumbprint of the certificate to use |
Returns
System. Encrypted text |
ToInsecureString(SecureString)
Converts a SecureString to a "regular" string
Declaration
public static string ToInsecureString(SecureString input)
Parameters
Secure SecureString to convert |
Returns
System. A "regular" string representation of the passed SecureString |
ToSecureString(String)
Converts a string to a SecureString
Declaration
public static SecureString ToSecureString(string input)
Parameters
System. String to convert |
Returns
Secure SecureString representation of the passed in string |