Thanks for the reply Jean-Claude, appreciated! Actually the whole senario is like this. I have a software that I am selling to the customers. I want to encrypt the information (license info) with my private key, and the software will contain (embedded/hardcoded) public key (the way I would like to do) and with that key the software will be able to decrypt the lincese information. I dont want to use symetric encoding/decoding, then its too easy to findout the key and generate a new license using that key even without hex editing. So that was the reason looking into PKI. I'd higly appreciate if anyone could comment if there is a better way to do what I am trying to achieve.

Thanks for your time,

Regards,

Usman.


From:  Jean-Claude Repetto <[EMAIL PROTECTED]>
To:  openssl-users@openssl.org
CC:  [EMAIL PROTECTED]
Subject:  Re: EVP Envelope & PKI Confusion...
Date:  Tue, 03 Apr 2007 16:29:56 +0200
MIME-Version:  1.0
Received:  from spock.galacsys.net ([88.191.250.29]) by bay0-mc7-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 3 Apr 2007 07:30:04 -0700
Received:  from gelas.mail.mxm (LPuteaux-151-41-15-109.w217-128.abo.wanadoo.fr [217.128.30.109])by spock.galacsys.net (Postfix) with ESMTP id D1D674546E;Tue, 3 Apr 2007 16:30:03 +0200 (CEST)
Received:  from localhost (localhost [127.0.0.1])by gelas.mail.mxm (Postfix) with ESMTP id 4D498A7833;Tue, 3 Apr 2007 16:30:01 +0200 (CEST)
Received:  from gelas.mail.mxm ([127.0.0.1])by localhost (gelas.mxm [127.0.0.1]) (amavisd-new, port 10024)with ESMTP id 3FqWMKgyK+Bs; Tue, 3 Apr 2007 16:29:53 +0200 (CEST)
Received:  from [192.168.0.98] (jean-claude.mxm [192.168.0.98])by gelas.mail.mxm (Postfix) with ESMTP id CD9E53C0AE;Tue, 3 Apr 2007 16:29:53 +0200 (CEST)
>Usman Riaz wrote :
>>
>>         I want to use PKI to encrypt some data and send it to the
>>customer to be decrypted. With my limitied knowledge about PKI, the
>>data can be encrypted using "private key" and then lateron that
>>encrypted data could be decrypted with the "public key".
>
>No, you encrypt the data using the public key of the customer, and
>the customer will decrypt it using its private key.
>
>


Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE! ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]

Reply via email to