mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-06-02 21:15:14 -06:00
use single quotes in the example to prevent variable interpolation in the shell when someone wants to use dollar signs in their password.
parent
338aaa8073
commit
f4b9d7e9ef
@ -56,11 +56,11 @@ You can also use the `argon2` command available on most Linux distros.
|
||||
|
||||
```bash
|
||||
# Using the Bitwarden defaults
|
||||
echo -n "MySecretPassword" | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4
|
||||
echo -n 'MySecretPassword' | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4
|
||||
# Output: $argon2id$v=19$m=65540,t=3,p=4$bXBGMENBZUVzT3VUSFErTzQzK25Jck1BN2Z0amFuWjdSdVlIQVZqYzAzYz0$T9m73OdD2mz9+aJKLuOAdbvoARdaKxtOZ+jZcSL9/N0
|
||||
|
||||
# Using the OWASP minimum recommended settings
|
||||
echo -n "MySecretPassword" | argon2 "$(openssl rand -base64 32)" -e -id -k 19456 -t 2 -p 1
|
||||
echo -n 'MySecretPassword' | argon2 "$(openssl rand -base64 32)" -e -id -k 19456 -t 2 -p 1
|
||||
# Output: $argon2id$v=19$m=19456,t=2,p=1$cXpKdUxHSWhlaUs1QVVsSStkbTRPQVFPSmdpamFCMHdvYjVkWTVKaDdpYz0$E1UgBKjUCD2Roy0jdHAJvXihugpG+N9WcAaR8P6Qn/8
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user