Browse Source

wg-password(docu): fixup docker command

pull/1364/head
Philip H. 7 months ago
committed by GitHub
parent
commit
f4b3d4fb6b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      How_to_generate_an_bcrypt_hash.md

4
How_to_generate_an_bcrypt_hash.md

@ -12,12 +12,12 @@
To generate a bcrypt password hash using docker, run the following command :
```sh
docker run ghcr.io/wg-easy/wg-easy wgpw YOUR_PASSWORD
docker run -it ghcr.io/wg-easy/wg-easy wgpw YOUR_PASSWORD
PASSWORD_HASH='$2b$12$coPqCsPtcFO.Ab99xylBNOW4.Iu7OOA2/ZIboHN6/oyxca3MWo7fW' // literally YOUR_PASSWORD
```
If a password is not provided, the tool will prompt you for one :
```sh
docker run ghcr.io/wg-easy/wg-easy wgpw
docker run -it ghcr.io/wg-easy/wg-easy wgpw
Enter your password: // hidden prompt, type in your password
PASSWORD_HASH='$2b$12$coPqCsPtcFO.Ab99xylBNOW4.Iu7OOA2/ZIboHN6/oyxca3MWo7fW'
```

Loading…
Cancel
Save