@ENCRYPT |
|
| Top Previous Next | |
Syntax:
@ENCRYPT(<string> {,<encryption type>})
Description:
This function returns the <string> value encrypted using <encryption type>.
Valid values for <encryption type> are:
<number> |
The string is reversibly encrypted using the supplied number. The encrypted string can be decrypted by repeating the function using the same number. |
MD5 |
The function returns an MD5 hash of the string, as a hexadecimal string. |
CRC |
[VDS6] The function returns a 32-bit CRC hash of the string, as a hexadecimal string. |
Note that MD5 and CRC hashes are not reversible.
OK:
Unchanged.
Example:
repeat
%A = @input(Enter string to encrypt:)
if @ok()
%E = @encrypt(%A)
%D = @encrypt(%E)
info Orig. string:@tab()%A @cr()Encrypted:@tab()%E@cr()Decrypted:@tab()%D
end
until @not(@ok())