TextAlgorithm
The 'TextAlgorithm' perform these conversions in the crypting phase:
- Text in clear is converted into array of bytes with 'StringToBytes'
- Bytes are passed to encryption algorithm
- Encryption algorithm returns a MemoryStream
- MemoryStream is turned into a Base64 string with 'MemoryToBase64String'
And these when decrypting:
- Text must be in Base64 in order to be decrypted
- Base64 string is turned into bytes with 'Base64StringToBytes'
- Bytes are passed to decryption algorithm
- Decryption returns a MemoryStream
- MemoryStream is turned into clear text with 'MemoryToString'
To create a TextAlgorithm see, for instance, TextROT13 TextROT13
Namespace: LLCryptoLib.CryptoAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public abstract class TextAlgorithm |
Visual Basic |
---|
Public MustInherit Class TextAlgorithm |
Visual C++ |
---|
public ref class TextAlgorithm abstract |
Inheritance Hierarchy
System..::..Object
LLCryptoLib.Crypto..::..TextAlgorithm
LLCryptoLib.Crypto..::..TextPlayfair
LLCryptoLib.Crypto..::..TextROT13
LLCryptoLib.Crypto..::..TextVigenere
LLCryptoLib.Crypto..::..TextAlgorithm
LLCryptoLib.Crypto..::..TextPlayfair
LLCryptoLib.Crypto..::..TextROT13
LLCryptoLib.Crypto..::..TextVigenere