Skip to content

Instantly share code, notes, and snippets.

@fabioyamate
Created July 11, 2020 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabioyamate/f3c0b1077c3ae50e3bbf45c4d3be84c4 to your computer and use it in GitHub Desktop.
Save fabioyamate/f3c0b1077c3ae50e3bbf45c4d3be84c4 to your computer and use it in GitHub Desktop.
#!/bin/bash
# TODO would it be possible to write in one line?
echo "Password: "
read -s password
echo -n $password | openssl dgst -sha256 -binary | xxd -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment