2013-08-03

I'm trying to implement licensing system for a software to prevent piracy.

For this I need to read a license file within the application, and I need to make sure this file is written by the owner company.

Asymmetric cryptography has good potential for this aim, but in other way around!

Asymmetric cryptography algorithms, like RSA, give you a Public key and a Private key which are used as follow:

Private keys are used to encrypt.

Public keys are used to decrypt.

But I need them like this:

Private keys to be used to decrypt.

Public keys to be used to encrypt.

A simplistic idea would be to switch the role of public and private keys, but there are posts saying that in RSA public keys can be generated from private ones which make this idea impractical.

So here's my question: Is there any asymmetric cryptography with reversed key roles?

Show more