Jump to content

.htpasswd encryption


leszer

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/288310-htpasswd-encryption/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/288310-htpasswd-encryption/#findComment-1478567
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.