[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PGP for dummys



OK @enc_data is supposed to be an array of lines of the encrypted data
So I guess it is ""  [null string]

I'm no Perl guru but these are the lines AFAIK that do all the PGP work:

$data =~ s/\$/\\\$/g;
print "sec=/home/sites/$hostname/users/$username/.gnupg<br>";
@enc_data = `echo "$data" | gpg --always-trust -at -e -r $Config{'recipient'} --homedir /home/sites/$hostname/users/$username/.gnupg`;


Make sure you've got hostname and username defined at the beginning of the script:

# User must exist in the same domain as the script resides and must be the same name as the
# username you defined for the key when you created it
$hostname = "www.domainofscript.com";
$username = "entersomeusernamehere";

Brian


Brian M. Rahill
President
RainStorm, Inc.
www.rainstormconsulting.com
"Designing Strategies for Internet Success."
brian@xxxxxxxxxxxxxxxx
Phone: 207-866-3908
Fax: 207-866-0297