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

Broken password hashing algorithm #282

Closed
niwla23 opened this issue Sep 1, 2021 · 1 comment
Closed

Broken password hashing algorithm #282

niwla23 opened this issue Sep 1, 2021 · 1 comment

Comments

@niwla23
Copy link

niwla23 commented Sep 1, 2021

According to the example in the README, passwords are encrypted using md5:

Tip: you can use atmoz/makepasswd to generate encrypted passwords:
echo -n "your-password" | docker run -i --rm atmoz/makepasswd --crypt-md5 --clearfrom=-

MD5 is considered broken since multiple years.
The example generation command seems to be generating an md5 hashed password (--crypt-md5).

Is this the only available hashing algorithm or are others available? If so, I am wondering how you specify it and would suggest using a non-borken algorithm in the README example.

@atmoz
Copy link
Owner

atmoz commented Oct 4, 2021

Thanks for noticing. I've found a better way to generate password hashes for linux, recommended by Red Hat:

python -c "import crypt; print(crypt.crypt('YOUR_PASSWORD'))"

This will by default use the strongest algorithm available.

@atmoz atmoz closed this as completed Oct 4, 2021
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