Create hash for initial admin password

cancel
Showing results for 
Search instead for 
Did you mean: 
jd_Inpute
Partner

Create hash for initial admin password

Jump to solution

I understand the ntlm passwords are encrypted with bcrypt then hashed with md4. I've trying creating my own bcrypt string and hashing but the result is clearly not what Alfresco is expecting.

How can I generate a unique valid hash without using Alfresco that can be used to set the initial admin password for a new repository?

1 Solution

Accepted Solutions
jd_Inpute
Partner

Re: Create hash for initial admin password

Jump to solution
2 Replies
angelborroy
Alfresco Employee

Re: Create hash for initial admin password

Jump to solution

There is no option to set bcrypt hashed initial password.

You can follow this pattern:

1. Generate MD4 hash as initial password

https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/index.js#L614

2. Set password encoding to bcrypt10

https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/7.4/docke...

The initial password will be converted to bcrypt10 eventually

Hyland Developer Evangelist
jd_Inpute
Partner

Re: Create hash for initial admin password

Jump to solution

Thanks Angel.