vek has asked for the wisdom of the Perl Monks concerning the following question:
Can anyone suggest any other tests for encryption? Maybe the answer is not to test the file at all and just throw the file at GnuPG even if it's not encrypted - that's rather messy though and I'd rather not call the decryption routines if I don't have to.if ($cv->{decrypt} =~ /y/i || ! -T $workFile || $workFile =~ /.pgp$/i || $workFile =~ /.gpg$/i) { my $decError = handleDecryption ($workFile); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: File Encryption
by Beatnik (Parson) on Dec 16, 2001 at 22:20 UTC | |
Re: File Encryption
by Zaxo (Archbishop) on Dec 17, 2001 at 00:55 UTC | |
Re: File Encryption
by traveler (Parson) on Dec 17, 2001 at 03:09 UTC | |
Re: File Encryption
by hsmyers (Canon) on Dec 17, 2001 at 09:47 UTC | |
Re: File Encryption
by bmccoy (Beadle) on Dec 17, 2001 at 09:04 UTC |