Equinox Online Help - Language Reference - A to Z

Home

Base64Decode

Applies to
SyntaxBase64Decode ciphertextMemo, plaintextMemo [, flags]
ActionThis statement returns a Base64 encoded version of ciphertextMemo in plaintextMemo.
Scope
Notes

The same variable may be used to contain the ciphertext, if required. If an error occurs, SysError is set to a nonzero value. Flag values are as follows:

  • +1 Return an error if the ciphertext contains errors
  • +2 Add a null (zero) character on the end of the plaintext
CategoryEncryption
See Also Base64Decode, TEADecode, TEAEncode, TEASetup
Example

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

Base64Decode SecretsEncoded,SecretsDecoded,1
SaveRecord

Any of these three memos could be workareas, for example the un-encoded secret and SecretsDecodes could be workareas leaving the Encoded SecretsEncoded as the memo field.