update for safer sha256 binary contructor