Метод | Описание | |
---|---|---|
CreateDerivedKey ( string password, byte salt, int keyLengthInBytes = 32, int iterations = 1000 ) : byte[] | ||
Decrypt ( byte keyMaterial, byte cipherText ) : byte[] | ||
Decrypt ( string key, string data ) : string |
Accepts a plaintext key and Base64 encoded data blob and returns decrypted plaintext.
|
|
Encrypt ( byte keyMaterial, byte data ) : byte[] | ||
Encrypt ( string key, string data ) : string |
Accepts plaintext key and plaintext data and returns a Base64 encoded encrpyted blob.
|
public static CreateDerivedKey ( string password, byte salt, int keyLengthInBytes = 32, int iterations = 1000 ) : byte[] | ||
password | string | |
salt | byte | |
keyLengthInBytes | int | |
iterations | int | |
Результат | byte[] |
public static Decrypt ( byte keyMaterial, byte cipherText ) : byte[] | ||
keyMaterial | byte | |
cipherText | byte | |
Результат | byte[] |
public static Decrypt ( string key, string data ) : string | ||
key | string | |
data | string | |
Результат | string |
public static Encrypt ( byte keyMaterial, byte data ) : byte[] | ||
keyMaterial | byte | |
data | byte | |
Результат | byte[] |
public static Encrypt ( string key, string data ) : string | ||
key | string | |
data | string | |
Результат | string |