Encrypt passwords via script
2 posts
• Page 1 of 1
- [email protected]
- Posts: 1
- Joined: 18 May 2016, 17:12
Encrypt passwords via script
We are converting a website from IISPassword to Helicon Ape, we'll be using the dbd module to store the usernames and passwords in a SQL database, it works great so far but the old .htaccess passwords aren't compatible with Ape so we need to regenerate them. We hundreds of users and doing them one by one using the Ape Manager is going to be extremely tedious, I would like to script this if possible.
I've tried using openssl with the -crypt and -apr1 switches but the resulting passwords don't match. I notice that in Ape Manager the password changes based on the username, so I've tried -salt <username> but that doesn't match either.
Has anyone had any success generating encrypted passwords via command line that work with Ape? I have Googled the heck out of this and found nothing. I will be using Powershell to do the work if that matters.
I've tried using openssl with the -crypt and -apr1 switches but the resulting passwords don't match. I notice that in Ape Manager the password changes based on the username, so I've tried -salt <username> but that doesn't match either.
Has anyone had any success generating encrypted passwords via command line that work with Ape? I have Googled the heck out of this and found nothing. I will be using Powershell to do the work if that matters.
Re: Encrypt passwords via script
Hello.
Ape is using Apache compatible .htpasswd format, so you should be able to use Apache tools to generate your password: https://httpd.apache.org/docs/current/p ... asswd.html
And please try to play with hash method, like Apache MD5, Crypt, SHA, etc.
Ape is using Apache compatible .htpasswd format, so you should be able to use Apache tools to generate your password: https://httpd.apache.org/docs/current/p ... asswd.html
And please try to play with hash method, like Apache MD5, Crypt, SHA, etc.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 22 guests