Encrypt passwords via script

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 1
Joined: 18 May 2016, 17:12

Encrypt passwords via script

18 May 2016, 17:23

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.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Encrypt passwords via script

19 May 2016, 08:18

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.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 22 guests