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


Crypt-Salt documentation  | view source Contained in the Crypt-Salt distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use Crypt::Salt;

  print crypt( "secret", salt() );




DESCRIPTION

Top

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

BUGS

Top

Please let the author know if any are caught

AUTHOR

Top

	Jonathan Steinert
	hachi@cpan.org

COPYRIGHT

Top

SEE ALSO

Top

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


Crypt-Salt documentation  | view source Contained in the Crypt-Salt distribution.