
10 Feb
2006
10 Feb
'06
9:58 a.m.
Hi! Solaris User wrote:
Marco Geweke,
I tried your method, but it did not work. For one thing, there is no crypt() function in MySQL. I tried encrypt, and decrypt, but it did not work.
You asked for a way to encrypt the password in PHP the same way otrs does in Perl, and that's the way: $password = crypt($cleartextpassword, $username); Where do you need a crypt()-function of MySQL for this line? I don't understand why you call Perl in your solution (see below), when you can get the same result in PHP directly. exec("perl -e \"print crypt('$pass_inout', '$user_input')\"", $output); For more information about the PHP-builtin crypt() see http://www.php.net/manual/en/function.crypt.php Greetings Marco