Suppose I have a program that generates a string. I want this string to be signed with the private key, so that I can be sure that the string was actually generated by the program, and not in any other way.
The only way I can do this is to HIDE the line inside the code, but in the case of open source programs, you need a way to insert this key only at compile time.
What is the best / easier way to achieve this (using C ++)?
(For C ++, I was thinking of some kind of preprocessor directive that generates some key at compile time.)
source share