C# Класс Authentiqr.NET.Code.SymmetricEncryption

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Decrypt ( byte cipherText, SecureString password ) : byte[]
Decrypt ( byte cipherText, string password ) : byte[]

Decrypts the ciphertext using the Key.

Encrypt ( byte plainText, SecureString password ) : byte[]
Encrypt ( byte plainText, string password ) : byte[]

Encrypts the plainText input using the given Key. A 128 bit random salt will be generated and prepended to the ciphertext before it is returned.

Описание методов

Decrypt() публичный статический Метод

public static Decrypt ( byte cipherText, SecureString password ) : byte[]
cipherText byte
password System.Security.SecureString
Результат byte[]

Decrypt() публичный статический Метод

Decrypts the ciphertext using the Key.
public static Decrypt ( byte cipherText, string password ) : byte[]
cipherText byte
password string The plain text encryption key.
Результат byte[]

Encrypt() публичный статический Метод

public static Encrypt ( byte plainText, SecureString password ) : byte[]
plainText byte
password System.Security.SecureString
Результат byte[]

Encrypt() публичный статический Метод

Encrypts the plainText input using the given Key. A 128 bit random salt will be generated and prepended to the ciphertext before it is returned.
public static Encrypt ( byte plainText, string password ) : byte[]
plainText byte The plain text to encrypt.
password string The plain text encryption key.
Результат byte[]