Which alternatives to OpenSSL do I have to calculate a SHA-256 hash?
shasum

You can just use shasum:

shasum -a 256 FILE.txt



The shasum is the name of the command. 
The -a option means algorithm. 
The 256 specifies use of the 256-bit algorithm.