C# Class Keyczar.Crypter

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

Public Methods

Method 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 method

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

Crypter() public method

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

Decrypt() public method

Decrypts the specified data.
public Decrypt ( byte data ) : byte[]
data byte The data.
return byte[]

Decrypt() public method

Decrypts the specified data.
public Decrypt ( WebBase64 data ) : string
data WebBase64 The data.
return string

Decrypt() public method

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.
return void