store data files encryptypted in database.
От | elmarkivp |
---|---|
Тема | store data files encryptypted in database. |
Дата | |
Msg-id | BAY108-DAV74F0B81BD22FF982A3641A3350@phx.gbl обсуждение исходный текст |
Ответы |
Re: store data files encryptypted in database.
Re: store data files encryptypted in database. Re: store data files encryptypted in database. |
Список | pgsql-php |
fclose($fp);
F.20.3.2. pgp_sym_decrypt()
pgp_sym_decrypt(msg bytea, psw text [, options text ]) returns text pgp_sym_decrypt_bytea(msg bytea, psw text [, options text ]) returns bytea
Decrypt a symmetric-key-encrypted PGP message.
Decrypting bytea data with pgp_sym_decrypt
is disallowed. This is to avoid outputting invalid character data. Decrypting originally textual data with pgp_sym_decrypt_bytea
is fine.
The options parameter can contain option settings, as described below.
F.20.3.7. Options for PGP functions
Options are named to be similar to GnuPG. An option's value should be given after an equal sign; separate options from each other with commas. For example:
pgp_sym_encrypt(data, psw, 'compress-algo=1, cipher-algo=aes256')
All of the options except convert-crlf apply only to encrypt functions. Decrypt functions get the parameters from the PGP data.
The most interesting options are probably compress-algo and unicode-mode. The rest should have reasonable defaults.
thanks
В списке pgsql-php по дате отправления: