Свойство | Тип | Описание | |
---|---|---|---|
DefaultKeyPair | |||
DoOAEPPadding | bool | ||
KeyLength | RsaKeyLengths |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | byte[] |
public static CreatePrivateKeyParams ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : RSAParameters | ||
rsaKeyLength | RsaKeyLengths | |
Результат | RSAParameters |
public static CreatePublicAndPrivateKeyPair ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : |
||
rsaKeyLength | RsaKeyLengths | |
Результат |
public static Decrypt ( byte encryptedBytes, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Результат | byte[] |
public static Decrypt ( byte encryptedBytes, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Результат | byte[] |
public static Decrypt ( string encryptedText, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Результат | string |
public static Decrypt ( string encryptedText, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Результат | string |
public static Decrypt ( this text ) : string | ||
text | this | |
Результат | string |
public static Encrypt ( byte bytes, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Результат | byte[] |
public static Encrypt ( byte bytes, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Результат | byte[] |
public static Encrypt ( string text, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
Результат | string |
public static Encrypt ( string text, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
Результат | string |
public static Encrypt ( this text ) : string | ||
text | this | |
Результат | string |
public static FromPrivateRSAParameters ( this privateKey ) : string | ||
privateKey | this | |
Результат | string |
public static FromPublicRSAParameters ( this publicKey ) : string | ||
publicKey | this | |
Результат | string |
public static ToPrivateKeyXml ( this privateKey ) : string | ||
privateKey | this | |
Результат | string |
public static ToPrivateRSAParameters ( this privateKeyXml ) : RSAParameters | ||
privateKeyXml | this | |
Результат | RSAParameters |
public static ToPublicKeyXml ( this publicKey ) : string | ||
publicKey | this | |
Результат | string |
public static ToPublicRSAParameters ( this publicKeyXml ) : RSAParameters | ||
publicKeyXml | this | |
Результат | RSAParameters |
public static ToPublicRsaParameters ( this privateKey ) : RSAParameters | ||
privateKey | this | |
Результат | 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 | |
Результат | bool |
public static RsaKeyPair,ServiceStack DefaultKeyPair | ||
Результат |