Filter::Crypto::CryptFile

Encrypt (and decrypt) Perl files.
Download

Filter::Crypto::CryptFile Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steve Hay
  • Publisher web site:
  • http://search.cpan.org/~shay/Filter-Crypto-1.21/script/crypt_file

Filter::Crypto::CryptFile Tags


Filter::Crypto::CryptFile Description

Encrypt (and decrypt) Perl files. Filter::Crypto::CryptFile is a Perl module that allows you to encrypt (and decrypt) Perl files.SYNOPSIS use Filter::Crypto::CryptFile qw(:DEFAULT $ErrStr); # Encrypt one filehandle (or file name) to another. crypt_file($in_fh, $out_fh, $crypt_mode) or die "crypt_file() failed: $ErrStr "; crypt_file($in_file, $out_file, $crypt_mode) or die "crypt_file() failed: $ErrStr "; # The crypt mode can be determined automatically. crypt_file($in_fh, $out_fh) or die "crypt_file() failed: $ErrStr "; crypt_file($in_file, $out_file) or die "crypt_file() failed: $ErrStr "; # Encrypt one filehandle (or file name) in-place (in memory). crypt_file($in_out_fh, $crypt_mode) or die "crypt_file() failed: $ErrStr "; crypt_file($in_out_file, $crypt_mode) or die "crypt_file() failed: $ErrStr "; # The crypt mode can be determined automatically. crypt_file($in_out_fh) or die "crypt_file() failed: $ErrStr "; crypt_file($in_out_file) or die "crypt_file() failed: $ErrStr ";This module provides a single function called crypt_file() for converting files to/from an encrypted state in which they can be run via Filter::Crypto::Decrypt.The function takes either a pair of open filehandles (one to read from and one to write to) or else a single open filehandle (to process "in-place"). (File names can also be specified instead of open filehandles.) It reads data from the input source, either encrypts it or decrypts it according to the "crypt mode", and then writes the result to the output source.In each case, the "crypt mode" may either be explicitly specified using the CRYPT_MODE_* flags, or else it can be omitted (or specified as undef or the null string) in order to be determined automatically by crypt_file(). Requirements: · Perl


Filter::Crypto::CryptFile Related Software