- Published
- Author
- Adithya HebbarSystem Analyst
We can generate a base64-encoded random key easily using either
Alternatively, using
Both commands will give you a 32-byte random key encoded in base64.
#encryption #openssl
openssl or a combination of dd and base64. Here's how:Code
openssl rand -base64 32Alternatively, using
dd and base64:Code
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64Both commands will give you a 32-byte random key encoded in base64.
#encryption #openssl