Updated hexDigest for read