GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CRYPT::BLOWFISH_PP (3)

.ds Aq ’

NAME

Crypt::Blowfish_PP - Blowfish encryption algorithm implemented purely in Perl

CONTENTS

SYNOPSIS

use Crypt::Blowfish_PP;

$blowfish=new Crypt::Blowfish_PP($key);

$ciphertextBlock=$blowfish->encrypt($plaintextBlock);

$plaintextBlock=$blowfish->decrypt($ciphertextBlock);

DESCRIPTION

The <B>Crypt::Blowfish_PPB> module provides for users to use the Blowfish encryption algorithm in perl. The implementation is entirely Object Oriented, as there is quite a lot of context inherent in making blowfish as fast as it is. The key is anywhere between 64 and 448 bits (8 and 56 bytes), and should be passed as a packed string. The transformation itself is a 16-round Feistel Network, and operates on a 64 bit block.

Object methods for the Crypt::Blowfish_PP module:

new(key)

The <B>newB>() method initialises a blowfish object with the key that is passed. This is the slow part of doing a blowfish encryption or decryption, as it initialises the 18 p-boxes and the 1024 s-boxes that are used for the algorithm. It will return undef if the key is not of a valid length.

encrypt(block)

The <B>encryptB>() method uses the initialised blowfish object to encrypt 8 bytes of data of the string passed to it. It returns the encrypted block.

decrypt(block)

The <B>decryptB>() method uses the initialised blowfish object to decrypt 8 bytes of data of the string passed to it. It returns the decrypted block.

COMMENTS

This is probably crap software, but hey, its for general use. I’m happy to patch it with other people’s code... :)

If you want speed, then see the Crypt::Blowfish module.

AUTHOR

Matthew Byng-Maddick <mbm@colondot.net>

SEE ALSO

http://www.counterpane.com/,Crypt::CBC
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 BLOWFISH_PP (3) 2001-01-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.