Mario Castelán Castro [2017-08-22 10:04:59-05] wrote: > “alias gen-password="head -c 16 /dev/urandom | base64 | head -c 22 && echo"”
Or if one wants to define the char set: #!/bin/sh length=${1:-16} tr -cd 0-9A-Za-z </dev/urandom | head -c "$length" echo -- /// Teemu Likonen - .-.. <https://keybase.io/tlikonen> // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
signature.asc
Description: PGP signature