I just moved a site to Jaguar that uses the PHP crypt function to write passwords to a .htpasswd file, but how can I learn the salt parameter for passwords generated on the aurora server?
This is a discussion on what is the seed for crypt function? in the Shared & Semi-Dedicated forum
I just moved a site to Jaguar that uses the PHP crypt function to write passwords to a .htpasswd file, but how can I learn ...
I just moved a site to Jaguar that uses the PHP crypt function to write passwords to a .htpasswd file, but how can I learn the salt parameter for passwords generated on the aurora server?
If you are just using the crypt() funtion in its most basic sense to generate DES-based passwords, the salt will be the first two characters of the password. So, given a password like 'xb3fjw2km,' the salt would be 'xb.' If you move the password file from the old server onto the new one it should still work fine. There should be no need to recreate the passwords.
Look up the crypt() function on php.net. There's a lot of good info in the manual.
--Jason
Copyright © 2011 JaguarPC.com
Bookmarks