From https://ss64.com/pass/command-line.html -
# Bash version
strongpw() {
read -rs -p 'Encryption key: ' key
echo '' # line break
echo -n "$key:$1" | sha256sum | perl -ne "s/([0-9a-f]{2})/print chr hex \$1/gie" | base64 | tr +/ Ea | cut -b 1-20
}