Last question...
I fixed the problem. The last issue was also my fault. I had changed the
algorithm to DES when I was troubleshooting and for some reason it doesn't
like algorithms under 128 bit. But I don't know why it didn't work
previously.
Why couldn't it find the provider at number 6?
I'm n
Ok, one more update. The last error was entirely my fault.
I was searching for an element that didn't exist.
But I'm still getting errors.
Current configuration:
BC provider at number 2.
searching for text1 element.
Still using j2se 1.4.2
This is the latest output and error:
Data: DES
Key encryp
By the way, it's the same error when I put it as number one.
If I use another app to list the providers it finds the BC provider fine.
I removed the explicit "BC" from the getInstance calls.
Now I get this error:
Data: DES
Key encryption key stored in file:/C:/SampleCode/XMLencrypt/testXMLenc/kek
Ok, I placed the BC provider at number 2 and now I get this error:
Data: DES
Key encryption key stored in file:/C:/SampleCode/XMLencrypt/testXMLenc/kek
[EMAIL PROTECTED]
Key: [EMAIL PROTECTED]
algorithmURI http://www.w3.org/2001/04/xmlenc#tripledes-cbc
org.apache.xml.security.encryption.XMLEncryp
I did.
It is number 6.
Quoting Vishal Mahajan <[EMAIL PROTECTED]>:
> Did you add an entry like the following to the
> "jre/lib/security/java.security" file before running the sample?
>
>
> security.provider.=org.bouncycastle.jce.provider.BouncyCastleProvider
>
> Vishal
>
> [EMAIL PROTECTED] wrote
Hi,
I'm hoping someone can help me with this error.
I get the following output and error when trying to run the sample
Encrypter.java:
Data: AES
Key encryption key stored in file: c:/SampleCode/XMLencrypt/testXMLenc/kek
[EMAIL PROTECTED]
Key: [EMAIL PROTECTED]
algorithmURI http://www.w3.org/2001