This is a followup to this question.
The accepted answer is generally sufficient, but requires user to supply personal information (e.g. name) for generating the key
You can use digital signature, generated by your key, and with public key inserted into your program.