What is “sha2” Package?

Implementation of SHA-256, SHA-384, and SHA-512 hash algorithms
For more details: http://aarongifford.com/computers/sha.html

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install sha2.
    brew install sha2

Now, use sha2!