added code to generate keyhash