create hash via crypto