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.
DIAGNOSTICSdecrypt
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 ALSOencrypt
, pwencrypt
, SQL functions encrypt()
and decrypt()