Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28
  1. #21
    InduM is offline Member
    Join Date
    Nov 2009
    Posts
    6
    Rep Power
    0

    Default PGP Encryption

    Hi


    can any one of help me out.

    I am running Pgpencryption program from commandPrompt.I am able to do Encryption but while decrypting am getting "java.lang.IllegalArgumentException: secret key for message not found"


    Thanks in advance


    Thanks
    Indu

  2. #22
    Deepa is offline Member
    Join Date
    Nov 2008
    Posts
    85
    Rep Power
    0

    Default Re:

    Hi,
    Do u have secring.skr file?

  3. #23
    InduM is offline Member
    Join Date
    Nov 2009
    Posts
    6
    Rep Power
    0

    Default

    yes i have

  4. #24
    InduM is offline Member
    Join Date
    Nov 2009
    Posts
    6
    Rep Power
    0

    Default

    Hi Deepa,

    I have pubring.pkr with 27 keys .Do you have any idea on which key will be taken by the progam to encrypt the file.


    Thanks
    -Indu

  5. #25
    Rajamanckam is offline Member
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Default

    Hi Deepa,
    Now i working with PGP for encryption and decryption. i can encrypt the file ,but i couldnot decrypt the file. During run time i got error, see beloworg.bouncycastle.openpgp.PGPException: Exception decrypting key
    java.lang.SecurityException: Unsupported keysize or algorithm parameters
    at javax.crypto.Cipher.init(DashoA12275)
    at org.bouncycastle.openpgp.PGPSecretKey.extractKeyDa ta(Unknown Source)
    at org.bouncycastle.openpgp.PGPSecretKey.extractPriva teKey(Unknown Source)
    at org.bouncycastle.openpgp.PGPSecretKey.extractPriva teKey(Unknown Source)
    at pgp.BouncyCastlePGPTest.findSecretKey(BouncyCastle PGPTest.java:253)
    at pgp.BouncyCastlePGPTest._decrypt(BouncyCastlePGPTe st.java:198)
    at pgp.BouncyCastlePGPTest.decrypt(BouncyCastlePGPTes t.java:54)
    at pgp.BouncyCastlePGPTest.main(BouncyCastlePGPTest.j ava:296)
    java.lang.NullPointerException
    at pgp.BouncyCastlePGPTest.main(BouncyCastlePGPTest.j ava:299)
    Exception in thread "main"

    Before that, You got a error like this. How did you solve this error.
    Please reply me ASAP!

  6. #26
    harshabob is offline Member
    Join Date
    Oct 2011
    Posts
    1
    Rep Power
    0

    Default Re: Exception in PGP Decryption

    Hi Deepa,
    I'm facing the same problem, i'm getting the same exceptions what u got...help me to decrypt a file using PGP decryption with RSA public/private keys....

  7. #27
    Triveni is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Unhappy Exception in PGP Decryption

    I am not able to decrypt a file. i getting the below exception .

    java.lang.IllegalArgumentException: secret key for message not found.
    at com.tecnotree.CopyOfPGPDecryption.decryptFile(Copy OfPGPDecryption.java:41)
    at com.tecnotree.CopyOfPGPDecryption.main(CopyOfPGPDe cryption.java:19)

    I had given a private key(secring.skr) and passphrase key(Password for key) in my program. But still i am getting above exception.
    please help me in resolving this. I have been trying for past 3 days but could not get to its bottom.
    Last edited by Triveni; 07-17-2012 at 09:27 AM.

  8. #28
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Need help on Exception
    By Deon in forum New To Java
    Replies: 7
    Last Post: 02-11-2010, 06:46 PM
  2. Encryption/Decryption
    By Echilon in forum New To Java
    Replies: 2
    Last Post: 03-24-2009, 12:58 PM
  3. Encryption-Decryption Problem
    By dinesh.1.sharma in forum Advanced Java
    Replies: 1
    Last Post: 07-17-2008, 11:03 PM
  4. Replies: 1
    Last Post: 03-08-2008, 07:41 PM
  5. Encryption/Decryption Through AOP
    By SirRawlins in forum Advanced Java
    Replies: 0
    Last Post: 12-19-2007, 04:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •