[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: One-line password generator

On 22/08/17 10:04, Mario Castelán Castro wrote:
> I have the following line in my Bash init file:
> “alias gen-password="head -c 16 /dev/urandom | base64 | head -c 22 && echo"”
> This generates a password with just above 128 bits of entropy. You may
> find it useful.

A slight simplification:

alias gen-password="head -c 16 /dev/urandom | base64 | cut -c -22"

Do not eat animals; respect them as you respect people.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: