mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-25 21:00:21 +03:00
commit
04d1ca18b7
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ pip3 install bcrypt --break-system-packages
|
|||
## Generating bcrypt hash from the command line
|
||||
You can use the following one-liner command to generate a bcrypt hash directly in the cmd/ terminal:
|
||||
```bash
|
||||
python3 -c "import bcrypt; password = b'your_password_here'; assert len(password) < 72, 'Password must be less than 72 bytes due to bcrypt limitation'; hashed = bcrypt.hashpw(password, bcrypt.gensalt()); print(f'The hashed password is: {hashed.decode()}'); docker_interpolation = hashed.decode().replace('$', '$$'); print(f'The hashed password for a Docker env is: {docker_interpolation}')" # or python if you run this on Windows. CHANGE your_password_here BY YOUR PASSWORD
|
||||
python3 -c "import bcrypt; password = b'your_password_here'; assert len(password) < 72, 'Password must be less than 72 bytes due to bcrypt limitation'; hashed = bcrypt.hashpw(password, bcrypt.gensalt()); print(f'The hashed password is: {hashed.decode()}'); docker_interpolation = hashed.decode().replace('$', '$'*2); print(f'The hashed password for a Docker env is: {docker_interpolation}')" # or python if you run this on Windows. CHANGE your_password_here BY YOUR PASSWORD
|
||||
```
|
||||
Please change ``your_password_here`` in the line by your own password.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue