Hi,

I'm using CF Pro on Linux and need to use the unix crypt() function to 
encrypt a password.

In perl, we might do this:

srand($$|time());
@saltchars = (a..z,A..Z,0..9,'.',';');

$salt = $saltchars[int(rand(1+$#saltchars))];
$salt.= $saltchars[int(rand(1+$#saltchars))];
$password_enc = crypt($password_plaintext, $salt);

the question is, how could I access the same thing in cold fusion?  Could I 
write a custom tag in perl?

thoughts?

thanks

peter

-- 
peter at gradwell dot com; online @ http://www.gradwell.com/

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to