- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function web_xor_crypt(const str: string; key: byte): string;
Arguments:
-
str |
Source/encrypted string |
key |
Encryption key |
Description:
-
Encrypts or decrypts a string using classic XOR algorithm with given key.
Returns:
-
XORed string.
Usage:
-
key := 128;
s := 'Secret';
t := web_xor_crypt(s, key);
if s <> web_xor_crypt(t, key) then web_throw_error('XOR error');
|