Skip to content

Instantly share code, notes, and snippets.

@trvv
trvv / ps.sh
Last active February 5, 2021 07:55
tiny password script
#!/bin/sh
printf "[Password] "; read -rs 2>/dev/null
echo "$REPLY:$1" | sha256sum | head -c ${2-20} | tee /dev/stderr |\
xclip -sel c 2>/dev/null; printf "\n"

Keybase proof

I hereby claim:

  • I am trvv on github.
  • I am trvv (https://keybase.io/trvv) on keybase.
  • I have a public key whose fingerprint is 10AA EF68 BDB4 7D66 6DE5 8509 1326 FF7B F15E 26D5

To claim this, I am signing this object: