开发者

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

开发者 https://www.devze.com 2023-01-31 08:54 出处:网络
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 \");开发者_如何学运维

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

精彩评论

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