JVCL Help:TJvXORCipher
JVCL Help: TJvXORCipher Class
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvCustomCipher
TJvXORCipher
run\JvCipher.pas
Summary
A component that can encode and decode using the XOR algorithm
Pascal
run\JvCipher.pas
TJvXORCipher = class(TJvCustomCipher);
Description
- JVCLInfo
The XOR algorithm is really simple and as such really easy to crack. However it is fast and uses a symmetrical algorithm:Encoded[I] = Decoded[I] XORKey[J]
Decoded[I] = Encoded[I] XORKey[J]
Set the Encoded property to get the decoded value in Decoded. Set the Decoded property to get the encoded value in Encoded.
About
Notes
As the algorithm is symmetrical, there is virtually no difference between setting Encoded or Decoded to get the resulting value.
Each element of the string will be encoded by its corresponding element in the Key. If the Key is too short, it is reused from the start.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page