mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-09-17 16:46:22 +03:00
reverted the change and added an explanation why we assume a POSIX shell for this to work
@@ -64,6 +64,9 @@ echo -n 'MySecretPassword' | argon2 "$(openssl rand -base64 32)" -e -id -k 19456
|
||||
# Output: $argon2id$v=19$m=19456,t=2,p=1$cXpKdUxHSWhlaUs1QVVsSStkbTRPQVFPSmdpamFCMHdvYjVkWTVKaDdpYz0$E1UgBKjUCD2Roy0jdHAJvXihugpG+N9WcAaR8P6Qn/8
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
This command assumes a POSIX shell which removes the single quotes around your string (which have been added to prevent variable interpolation when substituting a `$` in the example). So if you are running a non-POSIX shell you might want to run `echo -n 'MySecretPassword'` to check what is passed and remove the single quotes accordingly.
|
||||
|
||||
### Using the generated PHC string
|
||||
|
||||
Use the generated PHC string as admin token in your environment variable or by passing it the docker/podman CLI command. For `docker-compose.yml` files follow the instructions below.
|
||||
|
||||
Reference in New Issue
Block a user