How to pass variable value to gpg commands

Posted by trainee on Stack Overflow See other posts from Stack Overflow or by trainee
Published on 2010-04-13T10:17:40Z Indexed on 2010/04/13 10:22 UTC
Read the original article Hit count: 406

Filed under:
|
|
|
$importkey = system('gpg --import newkey.asc . $username');

need to pass the file name as a variable.so that file name with its contents can be import in gnupg keyring.

$gpg = system('gpg --recipient userid  --output filename --armor  --encrypt filename to encrypt', $retvalue);

how can i pass the recipient email id(userid) and the filename as variable to gpg commands

thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about encryption