change dic's key to hash(key)