I'm working on a simple copy protection scheme for my software. It
doens't need to be rock-solid, but I think an asymmetric approach
would suit me better than the AES route I was about to take.

Given what I'm after, I'd like to know if what I'm attempting to do is
possible with Cryptopp using RSA. Here's how my plan breaks down:

1) When activating, the client (win32/c++) passes a unique identifier
(ie. mac address, hd serial, etc) that is machine specific to the
server (.net/c#). the server uses one key to encrypt this info with
some other date and sends that encrypted data back to the client which
is then stored on the users machine in a file.

2) When the application is subsequently started, it opens that file,
decrypts the data with the other key and compares it against the
output from the method that was first used to establish that machine's
uniqueness.

Although the key hard-coded in the client app could allow someone to
decrypt that file, if they were clever enought to obtain it, the human-
readable text would be useless to them as they'd have no way to change
it for use on another machine, and re-encrypt it.

I've just started learning about public key encryption and the private/
public terms are a bit confusing to me, so I intentionally left them
out of my example. What I'm after is whether this approach can be
achieved using cryptopp using it's RSA routines. If you have any
sample code, that would be amazing, but really what I'm after is how
to approach it.

Thank you VERY much in advance.
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to