C# Class Microsoft.Identity.Client.CryptographyHelper

Inheritance: ICryptographyHelper
Mostra file Open project: AzureAD/microsoft-authentication-library-for-dotnet Class Usage Examples

Public Methods

Method Description
CreateSha256Hash ( string input ) : string
SignWithCertificate ( string message, X509Certificate2 certificate ) : byte[]

Private Methods

Method Description
GetCryptoProviderForSha256 ( RSACryptoServiceProvider rsaProvider ) : RSACryptoServiceProvider

Method Details

CreateSha256Hash() public method

public CreateSha256Hash ( string input ) : string
input string
return string

SignWithCertificate() public method

public SignWithCertificate ( string message, X509Certificate2 certificate ) : byte[]
message string
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
return byte[]