Why not just use shasum utility? I think it's available in all linux distros:
ayanami@frater260 ~ 18:23:25$ shasum /bin/bash
ayanami@frater260 ~ 18:24:57$ shasum -a 256 /bin/bash
ayanami@frater260 ~ 18:24:02$ shasum /bin/*
(by using -a we can specify which version of the sha we want computed - this way it's more portable than using sha256sum, sha512sum, etc)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.