Colin Kong > LibWeb-0.02 > LibWeb::Crypt

Download:
LibWeb-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

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 ^

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

syntax highlighting: