Secure Exchanges SDK Documentation
Search Results for

    Show / Hide Table of Contents

    Class PEMCrypto

    Inheritance
    object
    PEMCrypto
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: SecureExchangesSDK.Helpers
    Assembly: SecureExchangesSDK.dll
    Syntax
    public class PEMCrypto

    Methods

    ExportPrivateKey(RSACryptoServiceProvider)

    Export private (including public) key from MS RSACryptoServiceProvider into OpenSSH PEM string slightly modified from https://stackoverflow.com/a/23739932/2860309

    Declaration
    public static string ExportPrivateKey(RSACryptoServiceProvider csp)
    Parameters
    Type Name Description
    RSACryptoServiceProvider csp
    Returns
    Type Description
    string

    ExportPublicKey(RSACryptoServiceProvider)

    Export public key from MS RSACryptoServiceProvider into OpenSSH PEM string slightly modified from https://stackoverflow.com/a/28407693

    Declaration
    public static string ExportPublicKey(RSACryptoServiceProvider csp)
    Parameters
    Type Name Description
    RSACryptoServiceProvider csp
    Returns
    Type Description
    string

    ImportPrivateKey(string)

    Import OpenSSH PEM private key string into MS RSACryptoServiceProvider

    Declaration
    public static RSACryptoServiceProvider ImportPrivateKey(string pem)
    Parameters
    Type Name Description
    string pem
    Returns
    Type Description
    RSACryptoServiceProvider

    ImportPublicKey(string, RSACryptoServiceProvider)

    Import OpenSSH PEM public key string into MS RSACryptoServiceProvider

    Declaration
    public static RSACryptoServiceProvider ImportPublicKey(string pem, RSACryptoServiceProvider csp)
    Parameters
    Type Name Description
    string pem
    RSACryptoServiceProvider csp
    Returns
    Type Description
    RSACryptoServiceProvider

    Extension Methods

    ExtensionHelper.CopySameNameAndTypeProperties<T, S>(T, S)
    In this article
    Back to top Secure Exchanges Inc. - Documentation