genkey

based off of load_keys