Encrypt with Private Key

From Crypto++ Wiki
Jump to navigation Jump to search

Taking from Wei Dai on the Crypto++ User's Group:

You can not encrypt data with a private key. It's just not a valid cryptographic operation. Perhaps what you want is to sign data with a private key, and then verify the signature with the public key. Use the signature classes to do that.

Also see the original FAQ [1], and visit Signature Scheme.