Encrypt with public key

2007-06-04 Thread Joseph Bonello
Hi I am writing an XML exchange program in which I would like a mechanism if acknowledgements using encrypted XML receipts. The receipt is an XML file simply stating that a message has been received. It is sent by the receiver to the sender. I would like to encrypt the message with the p

RE: Encrypt with public key

2007-06-05 Thread Joseph Bonello
Dear Ulrich Thanks for your response and the advice. I am using Bouncy Castle as my security provider. Is there some code that I can use as an example for what I need? The public key is stored in a public key object in a database, so there is no difficutly retrieving it. Thanks and Regards Josep

RE: Encrypt with public key

2007-06-11 Thread Joseph Bonello
Hi Ulrich! Thanks for your time to answer my query. My problem is not so much with using the APIs. In fact I have successfully sent encrypted and signed messages between two communicators. However, my problem lies here. The code hereunder shows how I am signing the XML document, and it uses a Pri

RE: Encrypt with public key

2007-06-18 Thread Joseph Bonello
Dear all Thanks for your responses. I understand the argument you have brought forward. Indeed what I needed is to encrypt using the public key of sender, not sign. What I would like to know is what algorithms are available for what I need (e.g. DSA, etc.) and a basic example of using public key f