Crypt::Skip32

A 32-bit block cipher based on Skipjack.
Download

Crypt::Skip32 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Eric Hammond
  • Publisher web site:
  • http://search.cpan.org/~esh/

Crypt::Skip32 Tags


Crypt::Skip32 Description

A 32-bit block cipher based on Skipjack. Crypt::Skip32 is a 32-bit block cipher based on Skipjack.SYNOPSIS use Crypt::Skip32; my $cipher = new Crypt::Skip32 $key; my $ciphertext = $cipher->encrypt($plaintext); my $plaintext = $cipher->decrypt($ciphertext); my $blocksize = $cipher->blocksize; my $keysize = $cipher->keysize;SKIP32 is a 80-bit key, 32-bit block cipher based on Skipjack. The Perl code for the algorithm is a direct translation from C to Perl of skip32.c by Greg Rose found here: http://www.qualcomm.com.au/PublicationsDocs/skip32.cThis cipher can be handy for scrambling small (32-bit) values when you would like to obscure them while keeping the encrypted output size small (also only 32 bits).One example where Crypt::Skip32 has been useful: You have numeric database record ids which increment sequentially. You would like to use them in URLs, but you don't want to make it obvious how many X's you have in the database by putting the ids directly in the URLs.You can use Crypt::Skip32 to scramble ids and put the resulting 32-bit value in URLs (perhaps as 8 hex digits or some other shorter encoding). When a user requests a URL, you can unscramble the id to retrieve the object from the database.Warning: A 32-bit value can only go a little over 4 billion (American). Plan ahead if what you need to encrypt might eventually go over this limit. Requirements: · Perl


Crypt::Skip32 Related Software