Available symmetric encryption algorithms.

Namespace: LLCryptoLib.Crypto
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public enum SupportedStreamAlgorithms
Visual Basic
Public Enumeration SupportedStreamAlgorithms
Visual C++
public enum class SupportedStreamAlgorithms

Members

Member nameValueDescription
DES0 DES
TRIPLEDES1 Triple DES or 3DES
RIJNDAEL2 Rijndael or AES 128 bit
AES1283 AES or Rijndael 128 bit
AES1924 AES or Rijndael 192 bit
AES2565 AES or Rijndael 256 bit
ARC46 ARC4 128 bit
ARC45127 ARC4 512 bit
ARC410248 ARC4 1024 bit
ARC420489 ARC4 2048 bit
TWOFISH10 Twofish 128 bit
TWOFISH25611 Twofish 256 bit
BLOWFISH12 Blowfish 128 bit
BLOWFISH25613 Blowfish 256 bit
BLOWFISH44814 Blowfish 448 bit
XOR15 XOR
CAST516 CAST5 128 bit
THREEFISH17 THREEFISH 256 bit
THREEFISH51218 THREEFISH 512 bit
THREEFISH102419 THREEFISH 1024 bit

Examples

CopyC#
// 1. Set algorithm
IStreamAlgorithm cryptoAlgo = StreamAlgorithmFactory.Create(SupportedStreamAlgorithms.BLOWFISH);

// 2. Encrypt 
StreamCrypter crypter = new StreamCrypter(cryptoAlgo);
crypter.GenerateKeys("littlelitesoftware");
crypter.EncryptDecrypt(rndFile.FullName, encryptedFile, true, null);
Console.WriteLine("File encrypted into " + encryptedFile);

// 3. Decrypt
StreamCrypter decrypter = new StreamCrypter(cryptoAlgo);
crypter.GenerateKeys("littlelitesoftware");
crypter.EncryptDecrypt(encryptedFile, decryptedFile, false, null);
Console.WriteLine("File decrypted into " + decryptedFile);

See Also