C# Class Keyczar.Crypter

Used to encrypt or decrypt data using a given key set.
Inheritance: Encrypter
Afficher le fichier Open project: jbtule/keyczar-dotnet Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Crypter() public méthode

Initializes a new instance of the Crypter class.
public Crypter ( IKeySet keySet ) : System
keySet IKeySet The key set.
Résultat System

Crypter() public méthode

Initializes a new instance of the Crypter class.
public Crypter ( string keySetLocation ) : System
keySetLocation string The key set location.
Résultat System

Decrypt() public méthode

Decrypts the specified data.
public Decrypt ( byte data ) : byte[]
data byte The data.
Résultat byte[]

Decrypt() public méthode

Decrypts the specified data.
public Decrypt ( WebBase64 data ) : string
data WebBase64 The data.
Résultat string

Decrypt() public méthode

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.
Résultat void