C# Class Brunet.Security.SymmetricEncryption

This wraps SymmetricAlgorithm to be better supported for lossy communication. This class is not thread-safe.
Afficher le fichier Open project: johnynek/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
BlockSizeByte int

Méthodes publiques

Méthode Description
Clear ( ) : void

When we're done using this, it is safest to clear all security bits from memory. That's what this does.

DecryptData ( byte EncryptedData ) : byte[]

Takes in a byte array and returns the data in a unencrypted format.

EncryptData ( byte UnencryptedData ) : byte[]

Takes in an unencrypted byte array and returns the encrypted form.

SymmetricEncryption ( SymmetricAlgorithm Algorithm ) : Brunet

Creates a new SymmetricEncryption handler for the passed in SymmetricAlgorithm.

Method Details

Clear() public méthode

When we're done using this, it is safest to clear all security bits from memory. That's what this does.
public Clear ( ) : void
Résultat void

DecryptData() public méthode

Takes in a byte array and returns the data in a unencrypted format.
public DecryptData ( byte EncryptedData ) : byte[]
EncryptedData byte The data to decrypt.
Résultat byte[]

EncryptData() public méthode

Takes in an unencrypted byte array and returns the encrypted form.
public EncryptData ( byte UnencryptedData ) : byte[]
UnencryptedData byte The byte array to encrypt.
Résultat byte[]

SymmetricEncryption() public méthode

Creates a new SymmetricEncryption handler for the passed in SymmetricAlgorithm.
public SymmetricEncryption ( SymmetricAlgorithm Algorithm ) : Brunet
Algorithm System.Security.Cryptography.SymmetricAlgorithm
Résultat Brunet

Property Details

BlockSizeByte public_oe property

public int BlockSizeByte
Résultat int