C# Класс Keyczar.Crypter

Used to encrypt or decrypt data using a given key set.
Наследование: Encrypter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Crypter ( IKeySet keySet ) : System

Initializes a new instance of the Crypter class.

Crypter ( string keySetLocation ) : System

Initializes a new instance of the Crypter class.

Decrypt ( byte data ) : byte[]

Decrypts the specified data.

Decrypt ( WebBase64 data ) : string

Decrypts the specified data.

Decrypt ( Stream input, Stream output, long inputLength = -1 ) : void

Decrypts the specified input.

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

Crypter() публичный Метод

Initializes a new instance of the Crypter class.
public Crypter ( IKeySet keySet ) : System
keySet IKeySet The key set.
Результат System

Crypter() публичный Метод

Initializes a new instance of the Crypter class.
public Crypter ( string keySetLocation ) : System
keySetLocation string The key set location.
Результат System

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

Decrypts the specified data.
public Decrypt ( byte data ) : byte[]
data byte The data.
Результат byte[]

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

Decrypts the specified data.
public Decrypt ( WebBase64 data ) : string
data WebBase64 The data.
Результат string

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

Decrypts the specified input.
Ciphertext was invalid!
public Decrypt ( Stream input, Stream output, long inputLength = -1 ) : void
input Stream The input.
output Stream The output.
inputLength long (optional) Length of the input.
Результат void