Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
Syntax: | result-string = DECRYPT(input-string, seed-string) |
Discussion: |
The DECRYPT function decrypts the input-string, and assigns the
result to the result-string. The decryption algorithm uses the
seed-string value as a seed; this value must match the seed that
was used when the data was encrypted.
The input-string may be defined at any length from 1 to 254 bytes. The DECRYPT function returns the same number of bytes as the input-string. The seed-string may be defined at any length from 1 to 254 characters. Note: The longer the seed string, the better the encryption. We recommend a minimum of 16 bytes for the seed string. See ENCRYPT |
History: | This function was added to Comet98 in Build 266. |
Example: |
LENGTH 25 & LOCAL A$, B$ LENGTH 16 & LOCAL SEED$ . . . SEED$ = "ABCD1234EFGH5678" A$ = DECRYPT(B$,SEED$)In the above example, B$ is an encrypted value, encrypted with a seed of "ABCD1234EFGH5678". The decrypted value is assigned to A$. |