Crypt::SecurID

Generate and verify SecurID time hash codes.
Download

Crypt::SecurID Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • John Pliam and I. C. Wiener
  • Publisher web site:
  • http://search.cpan.org/~pliam/

Crypt::SecurID Tags


Crypt::SecurID Description

Generate and verify SecurID time hash codes. Crypt::SecurID is a Perl module that can be used to generate and verify SecurID time hash codes.SYNOPSIS use Crypt::SecurID; # create a token object tied to a 64-bit hex string key $token = Crypt::SecurID->new(hexkey => "0123456789abcdef"); # equivalently $token = Crypt::SecurID->new; $token->setKey("0123456789abcdef") || die $token->error; # create a token object tied to key in import file w/ serial number $token = Crypt::SecurID->new(file => $file, serial => $serial); # equivalently $token = Crypt::SecurID->new; $token->importToken($file, $serial); # print a hash code value print $token->code(time); # equivalently print $token->codeNow; # verify a hash code value, print drift die "Code invalid" unless $token->validate($code, $days_tolerance); printf("Code ok, drift = %d minutes ", $token->drift); # export a token to a file unless ($token->exportToken($file, $serial)) { die $token->error; }Crypt::SecurID is an emulator module for generating and verifying SecurID time-hash codes. Such codes are often useful during identity authentication, especially when the code is generated out-of-band so that the 64-bit secret key is never on any client machine.Considerable speculation about the weakness of the hash algorithm has been put forth. AFAIK, it is still an open problem to determine how many distinct codes are necessary to recover the secret key.OTOH, for one-sided authentication models (like SSL), even a weak time hash based on a shared secret may provide a desirable extra layer of security.This module is provided for purposes of discussion and/or prototyping. If you need a real ACE server, buy one. Requirements: · Perl


Crypt::SecurID Related Software