Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Rep Power

    Default Encryption-Decryption Problem

    Hi all,

    I am working on encrypting XML file on client-side and Decrypting same file on server-side.
    Encryption is working fine on client side, but during the decryption on server-side I am facing some problem.

    Exception Occured:

    PM decryptToByteArray
    SEVERE: XMLCipher::decryptElement called without a key and unable to resolve ception: No Key Encryption Key loaded and cannot determine using key resolvers
    at ptToByteArray(Unknown Source)
    at ptElement(Unknown Source)
    at al(Unknown Source)
    at RequestDecryption.decryptRequest(RequestDecryption .java:220)

    Please help me to come out from this problem.


  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Basic debugging technique for all crypto code: make sure you can encipher and decihper some trivial text before you do anything else.

    From the traceback, looks like you are not setting the key.

Similar Threads

  1. Encryption/Decryption
    By Echilon in forum New To Java
    Replies: 2
    Last Post: 03-24-2009, 12:58 PM
  2. encryption
    By Joe2003 in forum Advanced Java
    Replies: 2
    Last Post: 02-06-2008, 11:27 AM
  3. Encryption/Decryption Through AOP
    By SirRawlins in forum Advanced Java
    Replies: 0
    Last Post: 12-19-2007, 04:22 PM
  4. Java encryption
    By soul_krasty in forum Advanced Java
    Replies: 3
    Last Post: 08-14-2007, 02:44 PM
  5. Encryption in java
    By Ed in forum Advanced Java
    Replies: 1
    Last Post: 07-09-2007, 01:47 AM

Posting Permissions

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