Equinox Online Help - Language Reference - A to Z

Home

TEADecode

Applies to
SyntaxTEADecode ciphertextMemo,plaintextMemo
ActionThis statement uses the XTEA encryption algorithm to decode ciphertextMemo, and returns the result in plaintextMemo.
Scope
Notes

It can only decode something which has been encoded using TEAEncode. If an error occurs, SysError is set to a nonzero value.

CategoryEncryption
See Also Base64Encode, Base64Decode, TEAEncode, TEASetup
Example

This example decodes the memo field secretsEncoded filled by the Base64Encode example. It then puts the decoded memo in SecretsDecoded.

NB. TEASetup has already been activated automatically on login.

TEADecode SecretsEncoded,SecretsDecoded
SaveRecord