Authen::Passphrase::DESCrypt

Authen::Passphrase::DESCrypt is a Perl module with passphrases using the DES-based Unix crypt().
Download

Authen::Passphrase::DESCrypt Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Main
  • Publisher web site:
  • http://search.cpan.org/~zefram/

Authen::Passphrase::DESCrypt Tags


Authen::Passphrase::DESCrypt Description

Authen::Passphrase::DESCrypt is a Perl module with passphrases using the DES-based Unix crypt(). Authen::Passphrase::DESCrypt is a Perl module with passphrases using the DES-based Unix crypt().SYNOPSIS use Authen::Passphrase::DESCrypt; $ppr = Authen::Passphrase::DESCrypt->new( salt_base64 => "my", hash_base64 => "TYK.j.88/9s"); $ppr = Authen::Passphrase::DESCrypt->new( salt_random => 12, passphrase => "passphrase"); $ppr = Authen::Passphrase::DESCrypt ->from_crypt('myTYK.j.88/9s'); $ppr = Authen::Passphrase::DESCrypt->new( fold => 1, initial => "xyzzy!!!", nrounds => 500, salt_base64 => "quux", hash_base64 => "QCKcHlgVsRY"); $fold = $ppr->fold; $initial = $ppr->initial; $initial_base64 = $ppr->initial_base64; $nrounds = $ppr->nrounds; $nrounds_base64 = $ppr->nrounds_base64_4; $salt = $ppr->salt; $salt_base64 = $ppr->salt_base64_2; $salt_base64 = $ppr->salt_base64_4; $hash = $ppr->hash; $hash_base64 = $ppr->hash_base64; if($ppr->match($passphrase)) { ... $passwd = $ppr->as_crypt; $userPassword = $ppr->as_rfc2307;An object of this class encapsulates a passphrase hashed using some form of the DES-based Unix crypt() hash function. This is a subclass of Authen::Passphrase, and this document assumes that the reader is familiar with the documentation for that class.The crypt() function in a modern Unix actually supports several different passphrase schemes. That is not what this class is about. This class is concerned only with one family of schemes, variants of the DES-based scheme that crypt() originally implemented, which confusingly is usually referred to merely as "crypt()". To handle the whole range of passphrase schemes supported by the modern crypt(), see the from_crypt constructor and the as_crypt method in Authen::Passphrase.Warning: this password scheme is weak by modern standards, and in any case does not support a large password space. Cracking crypt()ed passwords has been a routine activity since the early 1990s. This scheme is supported for compatibility reasons only, and should not be used except when compatibility is required. Do not use this in the design of any new system or for new passwords in any system that supports better passphrase schemes. Requirements: · Perl


Authen::Passphrase::DESCrypt Related Software