C# Class Thinktecture.IdentityModel.Extensions.RSAExtensions

Extension methods for RSACryptoServiceProvider
Show file Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
GetKeyHash ( this rsa ) : byte[]

Calculates a hash for an RSA key.

GetKeyHash ( this rsa, string entropy ) : byte[]

Calculates a hash for an RSA key.

GetKeyHashString ( this rsa ) : string

Calculates a hash string for an RSA key.

GetKeyHashString ( this rsa, string entropy ) : string

Calculates a hash string for an RSA key.

Method Details

GetKeyHash() public static method

Calculates a hash for an RSA key.
public static GetKeyHash ( this rsa ) : byte[]
rsa this The RSA key.
return byte[]

GetKeyHash() public static method

Calculates a hash for an RSA key.
public static GetKeyHash ( this rsa, string entropy ) : byte[]
rsa this The RSA key.
entropy string Additional entropy.
return byte[]

GetKeyHashString() public static method

Calculates a hash string for an RSA key.
public static GetKeyHashString ( this rsa ) : string
rsa this The RSA key.
return string

GetKeyHashString() public static method

Calculates a hash string for an RSA key.
public static GetKeyHashString ( this rsa, string entropy ) : string
rsa this The RSA Key
entropy string Additional entropy.
return string