Update sha_constructor to hashlib.sha256