Property | Type | Description | |
---|---|---|---|
DefaultKeyPair | |||
DoOAEPPadding | bool | ||
KeyLength | RsaKeyLengths |
Method | Description | |
---|---|---|
Authenticate ( byte dataToSign, RSAParameters privateKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
CreatePrivateKeyParams ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : RSAParameters | ||
CreatePublicAndPrivateKeyPair ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : |
||
Decrypt ( byte encryptedBytes, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Decrypt ( byte encryptedBytes, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Decrypt ( string encryptedText, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Decrypt ( string encryptedText, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Decrypt ( this text ) : string | ||
Encrypt ( byte bytes, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Encrypt ( byte bytes, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Encrypt ( string text, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Encrypt ( string text, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Encrypt ( this text ) : string | ||
FromPrivateRSAParameters ( this privateKey ) : string | ||
FromPublicRSAParameters ( this publicKey ) : string | ||
ToPrivateKeyXml ( this privateKey ) : string | ||
ToPrivateRSAParameters ( this privateKeyXml ) : RSAParameters | ||
ToPublicKeyXml ( this publicKey ) : string | ||
ToPublicRSAParameters ( this publicKeyXml ) : RSAParameters | ||
ToPublicRsaParameters ( this privateKey ) : RSAParameters | ||
Verify ( byte dataToVerify, byte signature, RSAParameters publicKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : bool |
Method | Description | |
---|---|---|
CreateRsa ( RsaKeyLengths rsaKeyLength ) : |
public static Authenticate ( byte dataToSign, RSAParameters privateKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
dataToSign | byte | |
privateKey | RSAParameters | |
hashAlgorithm | string | |
rsaKeyLength | RsaKeyLengths | |
return | byte[] |
public static CreatePrivateKeyParams ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : RSAParameters | ||
rsaKeyLength | RsaKeyLengths | |
return | RSAParameters |
public static CreatePublicAndPrivateKeyPair ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : |
||
rsaKeyLength | RsaKeyLengths | |
return |
public static Decrypt ( byte encryptedBytes, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
return | byte[] |
public static Decrypt ( byte encryptedBytes, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
return | byte[] |
public static Decrypt ( string encryptedText, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
return | string |
public static Decrypt ( string encryptedText, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
return | string |
public static Encrypt ( byte bytes, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
return | byte[] |
public static Encrypt ( byte bytes, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
return | byte[] |
public static Encrypt ( string text, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
return | string |
public static Encrypt ( string text, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
return | string |
public static FromPrivateRSAParameters ( this privateKey ) : string | ||
privateKey | this | |
return | string |
public static FromPublicRSAParameters ( this publicKey ) : string | ||
publicKey | this | |
return | string |
public static ToPrivateKeyXml ( this privateKey ) : string | ||
privateKey | this | |
return | string |
public static ToPrivateRSAParameters ( this privateKeyXml ) : RSAParameters | ||
privateKeyXml | this | |
return | RSAParameters |
public static ToPublicKeyXml ( this publicKey ) : string | ||
publicKey | this | |
return | string |
public static ToPublicRSAParameters ( this publicKeyXml ) : RSAParameters | ||
publicKeyXml | this | |
return | RSAParameters |
public static ToPublicRsaParameters ( this privateKey ) : RSAParameters | ||
privateKey | this | |
return | RSAParameters |
public static Verify ( byte dataToVerify, byte signature, RSAParameters publicKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : bool | ||
dataToVerify | byte | |
signature | byte | |
publicKey | RSAParameters | |
hashAlgorithm | string | |
rsaKeyLength | RsaKeyLengths | |
return | bool |
public static RsaKeyPair,ServiceStack DefaultKeyPair | ||
return |