NAME

Solstice::Encryption - Solstice's standard two-way encryption library.

SYNOPSIS

use Solstice::Encryption;

my $encrypter = Solstice::Encryption->new;

my $ciphertext = $encrypter->encrypt($string);

my $string = $encrypter->decrypt($ciphertext);

DESCRIPTION

Will encrypt/decrypt a string using the Rijndael algorithm (aes).

Export

No symbols exported.

Methods

new()

Constructor. Returns an encrypter object.

encrypt(plain_text_string)

Returns the encrypted version of the plain_text_string in URL safe text.

encryptHex(plain_text_string) Returns the encrypted version of the plain_text_string escaped as hex.
_encrypt()
decrypt(encrypted_string)

Returns the decrypted version of the encrypted_string

decryptHex(encrypted_string) Returns the decrypted version of the encrypted string.
_decrypt()

Private Methods

_setCipher($cipher)
_getCipher()

Modules Used

Crypt::Rijndael, MIME::Base64, URI::Escape.

AUTHOR

Catalyst Group, <catalyst@u.washington.edu>

VERSION

$Revision: 3364 $

COPYRIGHT

Copyright 1998-2007 Office of Learning Technologies, University of Washington

Licensed under the Educational Community License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.opensource.org/licenses/ecl1.php

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.