LibWeb::Crypt - Encryption for libweb applications


LibWeb documentation  | view source Contained in the LibWeb distribution.

Index


NAME

Top

LibWeb::Crypt - Encryption for libweb applications

SUPPORTED PLATFORMS

Top

BSD, Linux, Solaris and Windows.

REQUIRE

Top

ISA

Top

SYNOPSIS

Top

  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

Top

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

Top

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

Top

Colin Kong (colin.kong@toronto.edu)

CREDITS

Top

Lincoln Stein (lstein@cshl.org)

BUGS

Top

SEE ALSO

Top

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


LibWeb documentation  | view source Contained in the LibWeb distribution.