Crypt-UnixCrypt_XS
view release on metacpan or search on metacpan
lib/Crypt/UnixCrypt_XS.pm view on Meta::CPAN
=head1 FUNCTIONS
=over
=item crypt( PASSWORD, SALT )
This is the conventional F<crypt> interface. I<PASSWORD> and I<SALT> are both strings. The password will be hashed, in a manner determined by the salt, and a string is returned containing the salt and hash. The salt is at the beginning of the retu...
If the salt is an empty string, then the password is ignored and an empty string is returned. The empty salt/hash string is thus used to not require a password.
If the salt string starts with two base 64 digits (from the set [./0-9A-Za-z]), then the password is hashed using the traditional DES-based algorithm. The salt is used to modify the DES algorithm in one of 4096 different ways. The first eight chara...
If the salt string starts with an underscore character and then eight base 64 digits then the password is hashed using the extended DES-based algorithm from BSDi. The first four base 64 digits specify how many encryption rounds are to be performed. ...
=item crypt_rounds( PASSWORD, NROUNDS, SALTNUM, BLOCK )
This is the core of the DES-based F<crypt> algorithm, exposed here to allow variant hash functions to be built. I<PASSWORD> is a string; its first eight characters are used as a DES key. I<SALTNUM> is an integer; its low 24 bits are used to modify ...
=item fold_password( PASSWORD )
This is the pre-hashing algorithm used in the extended DES algorithm to fold a long password to the size of a DES key. It takes a password of any length, and returns a password of eight characters which is completely equivalent in the extended DES a...
=item base64_to_block( BASE64 )
This converts a data block from a string of eleven base 64 digits to a raw string of eight bytes.
=item block_to_base64( BLOCK )
( run in 0.455 second using v1.01-cache-2.11-cpan-96521ef73a4 )