opass

OpenBSD password suite
git clone https://git.pastanoggin.com/opass.git
Log | Files | Refs | README | LICENSE

gen (379B)


      1 #!/bin/sh
      2 # gen: generate passwordssss (:<)~~~~~
      3 # the range is from ascii space (32) to tilde (126) -> 126-32+1=95
      4 # possibilities which yeilds 256+ bits of entropy at a password length of 40
      5 # (can be calculated with `entropy 95 40')
      6 set -e
      7 length=40
      8 [ "$#" -gt 1 ] && { echo "usage: ${0##*/} [length]" 1>&2; exit 1; } 
      9 [ "$#" -eq 1 ] && length=$1
     10 jot -rcs '' "$length" 32 126