From ae8af1fc435af228ce0e9c1a97bb4a5588fb91d6 Mon Sep 17 00:00:00 2001 From: valorisa Date: Sun, 14 Jul 2024 09:03:00 +0200 Subject: [PATCH] Update How_to_generate_an_bcrypt_hash.md Changing 'XXXXXXX' by 'your_password_here' --- How_to_generate_an_bcrypt_hash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/How_to_generate_an_bcrypt_hash.md b/How_to_generate_an_bcrypt_hash.md index 3330df06..0e553511 100644 --- a/How_to_generate_an_bcrypt_hash.md +++ b/How_to_generate_an_bcrypt_hash.md @@ -65,7 +65,7 @@ Alternatively (for macOS), a softer way recommended, instead of --break-system-p ~ % python3 -m venv path/to/venv ~ % source path/to/venv/bin/activate (venv) ~ % python3 -m pip install --upgrade pip -(venv) ~ % python3 -c "import bcrypt; password = b'XXXXXXXXX'; 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 +(venv) ~ % 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 The hashed password is: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The hashed password for a Docker env is: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ```