DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

Crypt::Salt



NAME

Crypt::Salt - Module for generating a salt to be fed into crypt.


SYNOPSIS

  use Crypt::Salt;
  
  print crypt( "secret", salt() );


DESCRIPTION

The single exported subroutine in this module is for generating a salt suitable for being fed to crypt() and other similar functions.


BUGS

Please let the author know if any are caught


AUTHOR

        Jonathan Steinert
        hachi@cpan.org


COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


SEE ALSO

perl(1).

salt

 Argument  : The first argument as passed will be used in numeric context as a count of how many characters you want returned in the salt, the default is 2. All other arguments are ignored.
 Returns   : A string of random characters suitable for use when being passed to the crypt() function