Diffie-Hellman encryption/decryption help!!
I am new to Java Cryptography and PGP.
I need to write a program to decrypt a file using "secret key ring" (".skr" file extension) and passphrase. This file is encrypted usingDiffie Hellman algorithm (I have the public key that was used for encryption with me. Not sure if this is needed for decryption). Can anyone point me to code examples? Or can you please post the code if you already have writen something similar?
Thanks a lot!!
[470 byte] By [
javaA-Za] at [2007-11-27 8:00:46]

# 1
Is this possible using Java Cryptography API? I haven't found anything in the API about "secret key rings". I know this can be done if I use something like Bouncy Castle. But my project manager does not want to use open source.
Can some one please tell me if this can be done via Java Cryptography API?
Thanks.
# 2
> Is this possible using Java Cryptography API? I
> haven't found anything in the API about "secret key
> rings". I know this can be done if I use something
> like Bouncy Castle. But my project manager does not
> want to use open source.
>
> Can some one please tell me if this can be done via
> Java Cryptography API?
>
> Thanks.
As far as I know secret keyring is just a file format for storing multiple secret keys. SunJCE provides its own file format for storing secret keys called java key store (.jks). If you are using SunJCE then you need to use jks format. If you have to use the secret keyring format then you will need to either go with cryptix or bouncy castle.