mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
[PR #4894] [CLOSED] Non-interactive Argon2id PHC hash generation #3491
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4894
Author: @buengese
Created: 8/26/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
4d31ba9feat: non-interactive Argon2id PHC hash generation📊 Changes
1 file changed (+34 additions, -17 deletions)
View changed files
📝
src/main.rs(+34 -17)📄 Description
This is a convenience feature I added mostly for my own sake.
It adds a non interactive way of creating the Agon2id PHC hash from a password which allows for better scriptability of the setup process. While this can technically already be done using the argon2 cli tool, thats still an extra tool that needs to be installed.
This PR just modifies the
vaultwarden hashcommand to check if stdin is a tty and if not will directly read an input password from stdin and output the PHC hash without any confirmation or extra output.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.