Gantry::Utils::Crypt - an easy way to crypt and decrypt


Gantry documentation  | view source Contained in the Gantry distribution.

Index


NAME

Top

Gantry::Utils::Crypt - an easy way to crypt and decrypt

SYNOPSIS

Top

    use Gantry::Utils::Crypt;

    my $crypt_obj = Gantry::Utils::Crypt->new ( 
        { secret => 'my_secret_encryption_string' }
    );

    my $encrypted_string = $crypt->encrypt( 'red', 'blue', 'green' );
    my @decrypted_values = $crypt->decrypt( $encrypted_string );

DESCRIPTION

Top

This module is a utillity to help with encryption and decryption.

METHODS

Top

new

Standard constructor, call it first.

Requires the following parameter

    secret       # this is your super secret encryption key

encrypt( 'value' [, ... ] )

encrypts and returns the encrypted string

decrypt( 'string' )

decrypts and returns the values

SEE ALSO

Top

Gantry(3)

LIMITATIONS

Top

This module depends on Gantry(3)

AUTHOR

Top

Tim Keefer <tkeefer@gmail.com>

COPYRIGHT and LICENSE

Top


Gantry documentation  | view source Contained in the Gantry distribution.