need primitive public key signature with out of band key distribution

Posted by Mike D on Stack Overflow See other posts from Stack Overflow or by Mike D
Published on 2009-08-20T13:37:15Z Indexed on 2010/05/12 2:04 UTC
Read the original article Hit count: 354

Filed under:

I pretty much a complete neophyte at this signature business so I don't know if what I'm asking is nonsense or not. Anyway, here goes...

I want to send an out of band message (don't worry about how it gets there) to a program I've written on a distant machine. I want the program to have some confidence the message is legit by attaching a digital signature to the message. The message will be small less than 200 characters.

It seems a public key based signature is what I want to use. I could embed the public key in the program.

I understand that the program would be vulnerable to attack by anyone who modifies it BUT I'm not too worried about that. The consequences are not dire.

I've looked through the MSDN and around the web but the prospect of diving in is daunting. I'm writing in straight c++, no NET framework or other fancy stuff. I've had no experience including NET framework stuff and little luck during previous attempts.

Can anyone point me at some very basic resources to get me started?

I need to know

1)how to generate the public and private keys 2)how to sign the message 3)how to verify the signature

Any help much appreciated.

TIA, Mike

© Stack Overflow or respective owner

Related posts about digital-signature