A sha256sum clone in C++ , text files and binary files works fine.
Optimized password list based SHA-256 password cracking written in C/C++, OpenCL for GPU