Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl with PGP or GPG on Windows

Status
Not open for further replies.

Sunds

MIS
Joined
Aug 22, 2006
Messages
2
Location
NO
Hi,

Any recommendations for what Perl modules for encryption to use on a windows server?

I want to use PGP, and have been trying to utilize several packages, like OpenPGP, GnuPG. Always with trouble with configuration, windows not supported, etc.

I'm on WinXP Prof, ActivePerl 5.8.8.
Any success stories and sample programs out there?


Thanx and rgrds,
Hans
 
I've used Crypt::Blowfish successfully on windows in the past.

Can you explain the problems you're facing? Are the modules not installing? Did you look for ppd's?

Regards
--Paul


Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Hi,
And thanks for answering:-)

Some more detailed description of my issue...

When using GnuPG, it installs fine, but I get a runtime err:
P:\Perl\test>perl -w gnupgtest.pl
Your vendor has not defined Fcntl macro F_SETFD, used at C:/Perl/site/lib/GnuPG.pm line 203.

when i run this script:
use GnuPG qw( :algo );

my $gpg = new GnuPG(
gnupg_path => 'C:\Program Files\GNU\GnuPG\gpg.exe',
homedir => 'C:\Program Files\GNU\GnuPG',
trace => 1
);


$gpg->gen_key( size => 1024,
name => "My name" );

---

For OpenPGP, I'm not sure my install is good. At runtime it says:
Compress::Zlib object version 1.41 does not match bootstrap parameter 1.42 at C:/Perl/site/lib/Compress/Zlib.pm line 100.
Compilation failed in require at C:/Perl/site/lib/Crypt/OpenPGP/Compressed.pm line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Crypt/OpenPGP/Compressed.pm line 6.
Compilation failed in require at C:/Perl/site/lib/Crypt/OpenPGP.pm line 443.

Something wrong. I've tried Zlib over again...
- ppm - can't find it
- perl -MCPAN -e "install Compress::Zlib" cannot locate object method ...
- just download, unzip and copy the .pm into the perl path. No success.

---

Blowfish installs fine:
perl -MCPAN -e "install Crypt::Blowfish"
CPAN: Storable loaded ok
Going to read C:\Perl\cpan\Metadata
Database was generated on Mon, 21 Aug 2006 04:32:38 GMT
Crypt::Blowfish is up to date.

but it will not load....

perl -w blowfishtest.pl
Can't locate loadable object for module Crypt::Blowfish in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at blowfishtest.pl line 2
Compilation failed in require at blowfishtest.pl line 2.
BEGIN failed--compilation aborted at blowfishtest.pl line 2.

---

ppd? Im not familiar with.

---

Let me just elaborate my original challenge, to make sure Im not moving in a wrong direction. I have some files that I, from a script, want to encrypt. These encrypted files I want to transfer by ftp and/or email to some other party. This other party will take pick up these files in a windows environment, decrypt them and then do some interesting stuff with them. They should be able to do that from their gui env, but probably they will also want to process them from some scripting environment.

Any help appreciated:-)

Rgrds,
Hans
 
ppm install Crypt-Blowfish
ppm install Crypt-OpenPGP

HTH


Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top