LibWeb::Crypt - Encryption for libweb applications


NAME

LibWeb::Crypt - Encryption for libweb applications


SUPPORTED PLATFORMS

BSD, Linux, Solaris and Windows.


REQUIRE


ISA


SYNOPSIS

  use LibWeb::Crypt;
  my $c = new LibWeb::Crypt();
  my $cipher =
      $c->encrypt_cipher(
                         -data => $plain_text,
                         -key => $key,
                         -algorithm => 'Crypt::Blowfish',
                         -format => 'hex'
                        );
  my $plain_text =
      $c->decrypt_cipher(
                         -cipher => $cipher,
                         -key => $key,
                         -algorithm => 'Crypt::Blowfish',
                         -format => 'hex'
                        );
  my $encrypted_pass =
      $c->encrypt_password('password_in_plain_text');


ABSTRACT

This class provides methods to

The current version of LibWeb::Crypt is available at

   http://libweb.sourceforge.net

Several LibWeb applications (LEAPs) have be written, released and are available at

   http://leaps.sourceforge.net


DESCRIPTION

METHODS

encrypt_cipher()

Params:

  -data=>, -key=>, -algorithm=>, -format=>

Pre:

Post:

Note: this makes use of the Crypt::CBC module and therefore can accept data of arbitrary length.

decrypt_cipher()

Params:

  -cipher=>, -key=>, -algorithm=>, -format=>

Pre:

Post:

encrypt_password()

Usage:

  my $encrypted_password =
      $crypt->encrypt_password($password_in_plain_text);

Encrypts the parameter (usually a password) and returns a 13-character long string using the perl's crypt() routine and randomly chosen salt.


AUTHORS

Colin Kong (colin.kong@toronto.edu)


CREDITS

Lincoln Stein (lstein@cshl.org)


BUGS


SEE ALSO

the Digest::HMAC manpage, the Digest::SHA1 manpage, the Digest::MD5 manpage, the Crypt::CBC manpage, the Crypt::Blowfish manpage, the Crypt::DES manpage, the Crypt::IDEA manpage, the LibWeb::Admin manpage, the LibWeb::Digest manpage, the LibWeb::Session manpage.

 LibWeb::Crypt - Encryption for libweb applications