JVCL Help:TJvXORCipher

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvCustomCipher
TJvXORCipher
run\JvCipher.pas


Summary

A component that can encode and decode using the XOR algorithm

run\JvCipher.pas


Pascal

 run\JvCipher.pas
 TJvXORCipher = class(TJvCustomCipher);


Description

  1. 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.

run\JvCipher.pas


About

Navigation

run\JvCipher.pas


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.

run\JvCipher.pas


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