Help - Search - Members - Calendar
Full Version: Which method does MT use to encrypt passwords?
Movable Type Community Forum > Additional Resources > Tips and Tricks
leonya
I really need to find out the method which MT uses to encrypt passwords (mt_author table).

I'm developing a custom website which uses MT as a CMS. One of my forms needs to check if supplied username and password is really registered in MT. I've tried encrypting the inputted password with md5() and passwd() but these functions don't generate the same output.

Please give me a hint!
imabug
MT uses the crypt function and a salt to generate passwords. Look in lib/MT/Author.pm for the details and actual code used.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.