safer sha256 binary constructor