From a3cf4b2efb529915ffc323ab35b1fd3a1cb53674 Mon Sep 17 00:00:00 2001 From: Xavier Stevens Date: Mon, 27 Jan 2020 10:26:10 -0800 Subject: [PATCH] Adding non-openssl method to generate a random password --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 82b7404..476921c 100644 --- a/README.md +++ b/README.md @@ -559,6 +559,12 @@ Good for quick passwords without human element. $ openssl rand -base64 24 ``` +If `openssl` is not available then we can also use `head` to read from `/dev/urandom`. + +``` +$ head -c 32 < /dev/urandom | xxd -p -c 32 +``` + **8.ii. Linux transportable encrypted filesystems**