Свойство | Type | Description | |
---|---|---|---|
DefaultKeyPair | |||
DoOAEPPadding | bool | ||
KeyLength | RsaKeyLengths |
Méthode | 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 |
Méthode | 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 | |
Résultat | byte[] |
public static CreatePrivateKeyParams ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : RSAParameters | ||
rsaKeyLength | RsaKeyLengths | |
Résultat | RSAParameters |
public static CreatePublicAndPrivateKeyPair ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : |
||
rsaKeyLength | RsaKeyLengths | |
Résultat |
public static Decrypt ( byte encryptedBytes, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Résultat | byte[] |
public static Decrypt ( byte encryptedBytes, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Résultat | byte[] |
public static Decrypt ( string encryptedText, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Résultat | string |
public static Decrypt ( string encryptedText, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Résultat | string |
public static Decrypt ( this text ) : string | ||
text | this | |
Résultat | string |
public static Encrypt ( byte bytes, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Résultat | byte[] |
public static Encrypt ( byte bytes, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Résultat | byte[] |
public static Encrypt ( string text, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Résultat | string |
public static Encrypt ( string text, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Résultat | string |
public static Encrypt ( this text ) : string | ||
text | this | |
Résultat | string |
public static FromPrivateRSAParameters ( this privateKey ) : string | ||
privateKey | this | |
Résultat | string |
public static FromPublicRSAParameters ( this publicKey ) : string | ||
publicKey | this | |
Résultat | string |
public static ToPrivateKeyXml ( this privateKey ) : string | ||
privateKey | this | |
Résultat | string |
public static ToPrivateRSAParameters ( this privateKeyXml ) : RSAParameters | ||
privateKeyXml | this | |
Résultat | RSAParameters |
public static ToPublicKeyXml ( this publicKey ) : string | ||
publicKey | this | |
Résultat | string |
public static ToPublicRSAParameters ( this publicKeyXml ) : RSAParameters | ||
publicKeyXml | this | |
Résultat | RSAParameters |
public static ToPublicRsaParameters ( this privateKey ) : RSAParameters | ||
privateKey | this | |
Résultat | 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 | |
Résultat | bool |
public static RsaKeyPair,ServiceStack DefaultKeyPair | ||
Résultat |