CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [newera] salt and password generation: Edit Log



FishMonger
Veteran / Moderator

Sep 22, 2015, 6:47 AM


Views: 2143
Re: [newera] salt and password generation

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..

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)


Edit Log:
Post edited by FishMonger (Veteran) on Sep 22, 2015, 6:48 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives