Answer the question
In order to leave comments, you need to log in
What is the analogue in php of the md5 function from perl?
Hello everyone, there is a script in perl, I rewrite it in php and that's the trouble, the functions do not work the same way =(
I read that md5 in php works like md5_hex in perl, but here's how to make a function that will work similar to the md5 function from pearl.
Here is the code the pearl I'm porting:
use Digest::MD5 qw(md5 md5_hex md5_base64);
$hash = md5($str1, $str2);
$hash = md5($str1.$str2);
Answer the question
In order to leave comments, you need to log in
this is from the console, I think in the code you can also somehow write
php -r 'echo crypt("your_password", "salt");'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question