Skip to content

Instantly share code, notes, and snippets.

View AnthonyMadia's full-sized avatar
🐼
merge

Anthony AnthonyMadia

🐼
merge
View GitHub Profile
@AnthonyMadia
AnthonyMadia / sha256.sh
Created December 28, 2021 01:10 — forked from HassenIO/sha256.sh
Get SHA256 of a text in Mac OSX terminal
# Get SHA256 of a text
# Usage: sha256 password
# output: 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
function sha256() {
echo -n $1 | shasum -a 256
# Source: http://albertech.blogspot.fr/2015/02/generate-sha-256-hash-from-command-line.html
}