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

feat: support hashed password #283

Merged
merged 1 commit into from Nov 4, 2023
Merged

feat: support hashed password #283

merged 1 commit into from Nov 4, 2023

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Nov 4, 2023

DUFS supports the use of sha-512 hashed password.

Create hashed password

$ mkpasswd  -m sha-512 -s
Password: 123456 
$6$qCAVUG7yn7t/hH4d$BWm8r5MoDywNmDP/J3V2S2a6flmKHC1IpblfoqZfuK.LtLBZ0KFXP9QIfJP8RqL8MCw4isdheoAMTuwOz.pAO/

Use hashed password

dufs -A -a 'admin:$6$qCAVUG7yn7t/hH4d$BWm8r5MoDywNmDP/J3V2S2a6flmKHC1IpblfoqZfuK.LtLBZ0KFXP9QIfJP8RqL8MCw4isdheoAMTuwOz.pAO/@/:rw'

Two important things for hashed passwords:

  1. Dufs only supports SHA-512 hashed passwords, so ensure that the password string always starts with $6$.
  2. Digest auth does not work with hashed passwords.

@sigoden
Copy link
Owner Author

sigoden commented Nov 4, 2023

close #277

@sigoden sigoden merged commit d3de3db into main Nov 4, 2023
3 checks passed
@sigoden sigoden deleted the feat-hashed-password branch November 4, 2023 10:13
@perrinjerome
Copy link

This also fixes #228

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

Successfully merging this pull request may close these issues.

None yet

2 participants