1NAME 2 Crypt::Salt - Module for generating a salt to be fed into crypt. 3 4SYNOPSIS 5 use Crypt::Salt; 6 7 print crypt( "secret", salt() ); 8 9DESCRIPTION 10 The single exported subroutine in this module is for generating a salt 11 suitable for being fed to crypt() and other similar functions. 12 13BUGS 14 Please let the author know if any are caught 15 16AUTHOR 17 Jonathan Steinert 18 hachi@cpan.org 19 20COPYRIGHT 21 This program is free software; you can redistribute it and/or modify it 22 under the same terms as Perl itself. 23 24 The full text of the license can be found in the LICENSE file included 25 with this module. 26 27SEE ALSO 28 perl(1). 29 30 salt 31 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. 32 Returns : A string of random characters suitable for use when being passed to the crypt() function 33 34