I'm writing a PHP script that needs to use the perl crypt function to hash a string. The easiest way to do this is to do the perl crypt function on the commandline. Currently I get no output, so I'm doing something wrong.
I've tried:
perl -e -p "crypt(string, salt);"
and various permutations, with no output. Any ideas what I'm doing wrong?
My last resort will be to write a small perl script to do the crypt and generate output - i know that will work.
I've tried:
perl -e -p "crypt(string, salt);"
and various permutations, with no output. Any ideas what I'm doing wrong?
My last resort will be to write a small perl script to do the crypt and generate output - i know that will work.