IB Statements/decrypt

From CometWiki

< IB Statements
Revision as of 10:57, 20 May 2009 by Badge (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DECRYPT function

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$.

Personal tools