use modern cryptohash api