Xbasic

DECRYPT_STRING Function

Syntax

Output_String as C = DECRYPT_STRING(C String[,C Key])

Arguments

String

A character string encrypted by the ENCRYPT_STRING()function.

Key

An encryption key. Required, if used by the corresponding ENCRYPT_STRING() function.

Description

Decrypt a string given Encrypted string.

Discussion

DECRYPT_STRING() returns a plain text version of a character string encrypted by the ENCRYPT_STRING() function.

Example

? encrypt_string("Alpha Software")
= "$Z)kd*ky+B#[email protected]"
? encrypt_string("Alpha Software", "password")
= ">jYM?_Po?w'js5"
? decrypt_string("$Z)kd*ky+B#[email protected]")
= "Alpha Software"
? decrypt_string(">jYM?_Po?w'js5", "password")
= "Alpha Software"

See Also