Crypt::Blowfish

Crypt::Blowfish is a Perl Blowfish encryption module.
Download

Crypt::Blowfish Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dave Paris
  • Publisher web site:
  • http://search.cpan.org/~dparis/Crypt-IDEA-1.08/IDEA.pod

Crypt::Blowfish Tags


Crypt::Blowfish Description

Crypt::Blowfish is a Perl Blowfish encryption module. Crypt::Blowfish is a Perl Blowfish encryption module.SYNOPSIS use Crypt::Blowfish; my $cipher = new Crypt::Blowfish $key; my $ciphertext = $cipher->encrypt($plaintext); my $plaintext = $cipher->decrypt($ciphertext);Blowfish is capable of strong encryption and can use key sizes up to 56 bytes (a 448 bit key). You're encouraged to take advantage of the full key size to ensure the strongest encryption possible from this module.Crypt::Blowfish has the following methods: blocksize() keysize() encrypt() decrypt()FUNCTIONSblocksize Returns the size (in bytes) of the block cipher. Crypt::Blowfish doesn't return a key size due to its ability to use variable-length keys. (well, more accurately, it won't as of 2.09 .. for now, it does. expect that to change)new my $cipher = new Crypt::Blowfish $key; This creates a new Crypt::Blowfish BlockCipher object, using $key, where $key is a key of keysize() bytes (minimum of eight bytes).encrypt my $cipher = new Crypt::Blowfish $key; my $ciphertext = $cipher->encrypt($plaintext); This function encrypts $plaintext and returns the $ciphertext where $plaintext and $ciphertext must be of blocksize() bytes. (hint: Blowfish is an 8 byte block cipher)decrypt my $cipher = new Crypt::Blowfish $key; my $plaintext = $cipher->decrypt($ciphertext); This function decrypts $ciphertext and returns the $plaintext where $plaintext and $ciphertext must be of blocksize() bytes. (hint: see previous hint) Requirements: · Perl


Crypt::Blowfish Related Software