id to hash