开发者

how to use php call linux GPG encrypt file with a passphase

I have a task which need to

use gpg to encrypt the upload file in php

my code is:

("echo '1234' | gpg --passphrase-fd 0 -c /path/aaa.jpg ");开发者_如何学运维

it works by paste the code in linux

but not work by php any solution


You need to use gnupg_decypt() to decrypt the text.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜