Hi Joseph,

There are a lot of sample classes shipped with the Apache XML Security 
framework. 

How to perform encryption and decryption is shown the classes Decrypter and 
Encrypter in the package org.apache.xml.security.samples.encryption.

How to perform signature and verification is shown the classes 
CreateEnvelopingSignature CreateSignature and VerifySignature in the package 
org.apache.xml.security.samples.signature.

We have used both BouncyCastle and IAIK as JCE providers and both worked fine 
for us.

HTH,
Ulrich

-----Ursprüngliche Nachricht-----
Von: security-dev@xml.apache.org
Gesendet: 06.06.07 08:41:36
An: <security-dev@xml.apache.org>
Betreff: RE: Encrypt with public key


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
Joseph



-----Original Message-----
From: Ulrich Ackermann [mailto:[EMAIL PROTECTED] 
Sent: 05 June 2007 22:50
To: security-dev@xml.apache.org
Subject: Re: Encrypt with public key

Hi Joseph,

Sure is this possible. That's what Apache XML Security is all about, isn't
it? :)

But I would first sign the message and encrypt it afterwards. That gives a
hacker less information because all signature related information is in the
encrypted part of the receipt.

Cheers,
Ulrich
-----Ursprüngliche Nachricht-----
Von: security-dev@xml.apache.org
Gesendet: 05.06.07 07:59:24
An: <security-dev@xml.apache.org>
Betreff: Encrypt with public key

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 public key of the sender, and then signing the
message with the private key of the receiver. 

Is it possible to encrypt the message using the public key
with the Apache Encryption library?

Thanks for your help in advance.

Kind regards


Joseph

_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192







_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192

Reply via email to