Closed murphy60dotcom closed 2 years ago
The password generator at src/PassGenerator.sh looks like this.
src/PassGenerator.sh
sleep 0.1 echo 835fU930sgi52fGs echo 42jdU5BJ62w5283wW echo 724gIEN62o0wU echo Yni623nfooa42Gr52H sleep 0.1 echo Hack724Ge62nfiT28 echo he42I73NdW8IN3J2g echo jEwbU52nsI8Ns897B2 echo uw42Bwo72KdbW72EqN
This will generate the same passwords for each time so it is not secure.
Consider reading random bytes from /dev/urandom and encoding them in base64, like this:
/dev/urandom
dd bs=16 count=1 if=/dev/urandom status=none | base64
This will read 16 bytes from /dev/urandom which is cryptographically secure and encode them in base64.
For example, it will output this: 0vWfBcEmH9XU8nALMk8meg==.
0vWfBcEmH9XU8nALMk8meg==
Okay
The password generator at
src/PassGenerator.sh
looks like this.This will generate the same passwords for each time so it is not secure.
Consider reading random bytes from
/dev/urandom
and encoding them in base64, like this:This will read 16 bytes from
/dev/urandom
which is cryptographically secure and encode them in base64.For example, it will output this:
0vWfBcEmH9XU8nALMk8meg==
.