Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make 'mkpasswd' compatible password hash with forge? #252

Open
xied75 opened this issue May 6, 2015 · 2 comments
Open

How to make 'mkpasswd' compatible password hash with forge? #252

xied75 opened this issue May 6, 2015 · 2 comments

Comments

@xied75
Copy link

xied75 commented May 6, 2015

Dear all,

We want to make the same password hash as what mkpasswd can do in Linux, which underneath is calling crypt(3).

# On Debian/Ubuntu (via the package "whois")
mkpasswd --method=SHA-512 --rounds=4096

http://linux.die.net/man/3/crypt

Thanks in advance for any helps!

@dlongley
Copy link
Member

dlongley commented May 6, 2015

If you need a pure JS implementation, this may do what you need: https://github.com/mvo5/sha512crypt-node

If you can use a node module w/a compiled binary: https://github.com/sendanor/node-crypt3

We could add support for this to forge at some point in the future, we just don't have the time to do so at the moment. However, we would accept a PR that implements this function in forge.

@xied75
Copy link
Author

xied75 commented May 6, 2015

@dlongley indeed the first repo works, looks should be easy to port. I'll see if I can get free time before you can. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants