Return-Path: Delivered-To: apmail-xml-security-dev-archive@www.apache.org Received: (qmail 26761 invoked from network); 6 Jun 2007 21:57:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 21:57:48 -0000 Received: (qmail 32944 invoked by uid 500); 6 Jun 2007 21:57:51 -0000 Delivered-To: apmail-xml-security-dev-archive@xml.apache.org Received: (qmail 32913 invoked by uid 500); 6 Jun 2007 21:57:51 -0000 Mailing-List: contact security-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: security-dev@xml.apache.org List-Id: Delivered-To: mailing list security-dev@xml.apache.org Received: (qmail 32902 invoked by uid 99); 6 Jun 2007 21:57:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 14:57:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.72.192.184] (HELO fmmailgate09.web.de) (217.72.192.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 14:57:45 -0700 Received: from web.de by fmmailgate09.web.de (Postfix) with SMTP id A4931C1B525 for ; Wed, 6 Jun 2007 23:56:42 +0200 (CEST) Received: from [87.123.79.13] by freemailng1204.web.de with HTTP; Wed, 06 Jun 2007 23:56:41 +0200 Date: Wed, 06 Jun 2007 23:56:41 +0200 Message-Id: <121762379@web.de> MIME-Version: 1.0 From: Ulrich Ackermann To: security-dev@xml.apache.org Subject: RE: Encrypt with public key Organization: http://freemail.web.de/ X-Provags-Id: V01U2FsdGVkX19rV2e622wUWda+BGEly3/TOEmETEbOlJfYJyin78LWz/pbN KKCJMmqbG1TMF+syB1ChmI2tzq5StVDHNvtw/FEr1v8iWM4Q94X4cCKxdOIS w== Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Joseph, There are a lot of sample classes shipped with the Apache XML Security fra= mework.=20 How to perform encryption and decryption is shown the classes Decrypter an= d Encrypter in the package org.apache.xml.security.samples.encryption. How to perform signature and verification is shown the classes CreateEnvel= opingSignature CreateSignature and VerifySignature in the package org.apac= he.xml.security.samples.signature. We have used both BouncyCastle and IAIK as JCE providers and both worked f= ine for us. HTH, Ulrich -----Urspr=FCngliche Nachricht----- Von: security-dev@xml.apache.org Gesendet: 06.06.07 08:41:36 An: 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 wha= t I need=3F The public key is stored in a public key object in a database, so there is no difficutly retrieving it.=20 Thanks and Regards Joseph -----Original Message----- From: Ulrich Ackermann [mailto:ulrich.ackermann@web.de]=20 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=3F :) But I would first sign the message and encrypt it afterwards. That gives a= hacker less information because all signature related information is in th= e encrypted part of the receipt. Cheers, Ulrich -----Urspr=FCngliche Nachricht----- Von: security-dev@xml.apache.org Gesendet: 05.06.07 07:59:24 An: 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 th= e message with the private key of the receiver.=20 Is it possible to encrypt the message using the public key with the Apache Encryption library=3F Thanks for your help in advance. Kind regards Joseph =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/=3Fmc=3D021192 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/=3Fmc=3D021192