leszer Posted May 7, 2014 Share Posted May 7, 2014 Hello! So I couldn't think of a better forum to post this under... The idea is I need to limit access to a site. The login names/passwords already exist for a different system and we can export a file from there. The problem is I need to use this for the .htpasswd file but the passwords are not encrypted and I do not want to run several hundred through a normal encryption tool singly. So before I go through the brain teaser of making a tool to encrypt the passwords (but not the usernames) I was curious if anyone had run across a tool or the need to do so yet and if they mind sharing their code. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/288310-htpasswd-encryption/ Share on other sites More sharing options...
Jacques1 Posted May 7, 2014 Share Posted May 7, 2014 Hi, you'll be surprised to hear that Apache has this tool already, and it happens to be called htpasswd. Note that you must use the bcrypt algorithm. All other algorithms are hopelessly outdated and can be broken in a matter of minutes. Also note that this is hashing, not “encryption”. Those are two entirely different things. Quote Link to comment https://forums.phpfreaks.com/topic/288310-htpasswd-encryption/#findComment-1478567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.