Search Results for

    Show / Hide Table of Contents

    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.String stringToDecrypt

    Text to decrypt

    System.String thumbPrint

    Thumbprint of the certificate to use

    Returns
    System.String

    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.String stringToEncrypt

    Text to encrypt

    System.String thumbPrint

    Thumbprint of the certificate to use

    Returns
    System.String

    Encrypted text

    ToInsecureString(SecureString)

    Converts a SecureString to a "regular" string

    Declaration
    public static string ToInsecureString(SecureString input)
    Parameters
    SecureString input

    SecureString to convert

    Returns
    System.String

    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 input

    String to convert

    Returns
    SecureString

    SecureString representation of the passed in string

    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer