Moving Hash class into cipher package