|
*WEB/BASE32 |
Encrypt or Decode Data |
The *web/base32 utility is a CALLed program that contains functions to encode and decode data in Base32 format.
Base32 is a way of converting data into simple text so it can be safely shared or stored in systems that only support plain text. It is often used when only certain characters are allowed or when the text needs to be easy to read and enter; for example, for access codes, security keys, and other identifiers that avoid special symbols such as + or /.
Encode String
CALL "*web/base32;ENCODE", a$, b$
Use this format for encoding strings.
Where:
a$ Input string to encode
b$ Output string containing Base32-encoded result
Example:
a$ = "Hello"
CALL "*web/base32;ENCODE", a$, b$
PRINT b$ ! output JBSWY3DP
Decode String
CALL "*web/base32;DECODE", a$, b$
Use this format for decoding Base32 strings back to the original data.
Where:
a$ Input string containing Base32 data
b$ Output string containing decoded result
Example:
a$ = "JBSWY3DP"
CALL "*web/base32;DECODE", a$, b$
PRINT b$ ! output "Hello"
*WEB/BASE64 Encrypt or Decode Data