Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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