If you're using asymmetric cryptography, why do you want to use private
key for encryption? In this way everyone who has the public key (which
is PUBLIC) can decrypt the xml.
For xml encryption, you can use the very good examples in apache xml
signature package  (you can found these in
xml-security-1_4_1/src_samples/org/apache/xml/security/samples/encryption
directory of the apache distribution in
http://xml.apache.org/security/dist/java-library/)

huang zhimin ha scritto:
> Can anybody give me an example to encrypt xml with private key?
> 
> -- 
> http://sourceforge.net/projects/mycodeline/
> http://rubyforge.org/projects/ropenwiki/

Reply via email to