decrypt - decrypt data

SYNOPSIS

<decrypt $crypt $key>


DESCRIPTION
The decrypt function decrypts each value of $crypt (previously encrypted with encrypt) using the corresponding $key value. There must be one or more values of $crypt and $key; if fewer values of $key exist than $crypt, the last $key value is re-used.


DIAGNOSTICS
decrypt returns each value of Unix-style encrypted data $crypt, decrypted using key $key.


EXAMPLE

<SQL "select data from secret where id = $id"> </SQL>
<decrypt $data $pass>
The data is: $ret


CAVEATS
The decrypt function was added Oct. 25 1996.

The encryption algorithm uses only the first 8 bytes of each key.


SEE ALSO
encrypt, pwencrypt, SQL functions encrypt() and decrypt()


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.