Sep 22, 2015, 6:47 AM
Start by reading the documentation for the corresponding perl functions and run a few tests. There's not always a direct one-to-one match between the results of php and perl functions, so you'll probably need to do some tweaking if you want both language routines to return the exact same password. This is especially true when writing your own custom encryption routines, like you're currently doing..
Re: [newera] salt and password generation
rand() - http://perldoc.perl.org/functions/rand.html
Digest::MD5 - http://search.cpan.org/~gaas/Digest-MD5-2.54/MD5.pm
Digest::SHA1 - http://search.cpan.org/~gaas/Digest-SHA1-2.13/SHA1.pm
Data::Uniqid - http://search.cpan.org/~mwx/Data-Uniqid-0.11/Uniqid.pm
I can't find an escape function on php.net, so I don't know what your escape function does and because of that, I can't provide a corresponding perl function.
(This post was edited by FishMonger on Sep 22, 2015, 6:48 AM)