StreamCast implements CAST5 (aka CAST-128) for streams. Key len = 8 byte Block len = 8 byte

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

Syntax

C#
[SerializableAttribute]
public class StreamCast : StreamAlgorithm
Visual Basic
<SerializableAttribute> _
Public Class StreamCast _
	Inherits StreamAlgorithm
Visual C++
[SerializableAttribute]
public ref class StreamCast : public StreamAlgorithm

Examples

Perform a CAST-128 stream encryption.
CopyC#
// Set encryption algorithm
IStreamAlgorithm encryptAlgo = new StreamCast();
StreamCrypter encrypter = new StreamCrypter(encryptAlgo);
// Set symmetric password
encrypter.GenerateKeys("littlelitesoftware");
// Encrypt
encrypter.EncryptDecrypt(rndFile.FullName, encryptedFile, true, null);
Console.WriteLine("File encrypted into " + encryptedFile);

Inheritance Hierarchy

System..::..Object
  LLCryptoLib.Crypto..::..StreamAlgorithm
    LLCryptoLib.Crypto..::..StreamCast

See Also