added crypto fn for hashing arrays