ph_decrypt PowerHome formula function
Description
This function will decrypt strings that were
previously encrypted using the ph_encrypt
function
Syntax
ph_decrypt ( data, key
)
Argument |
Description |
data |
String. The encrypted string you wish to decrypt. |
key
|
String. The key to use for
decryption. This key must match the key that was used to encrypt the
data originally.
|
Return value
String. Returns the decrypted string
in standard
ASCII format.
Usage
The ph_encrypt and ph_decrypt functions use
the Microsoft Cryptograghy library.
Examples
The following examples demonstrate typical syntax/usage for this function.
ph_decrypt("C2DB941D6A1754A02778D80C9C91","abc123") The
output of this function will be the originally encrypted string: "This is a
test". The "abc123" is the key/password that used to orignally encrypt the
string.