A TextCryptFactory is a factory class for TextCrypter object. The user must supply an algorithm ID and some parameters and he gets an initialized TextCrypter object

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

Syntax

C#
public sealed class TextCrypterFactory
Visual Basic
Public NotInheritable Class TextCrypterFactory
Visual C++
public ref class TextCrypterFactory sealed

Examples

CopyC#
// TextROT13 TEXT TRANSFORMATION
TextAlgorithmParameters parms = new TextAlgorithmParameters(3);
TextCrypter textEncrypter = TextCrypterFactory.Create(SupportedTextAlgorithms.ROT13,parms);
string encrypted = textEncrypter.TextEncryptDecrypt(origString, true);
Console.WriteLine("Encrypted string: " + encrypted);
string decrypted = textEncrypter.TextEncryptDecrypt(encrypted, false);
Console.WriteLine("Decrypted string: " + decrypted);
Console.WriteLine();

Inheritance Hierarchy

System..::..Object
  LLCryptoLib.Crypto..::..TextCrypterFactory

See Also