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

    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 org.apache.xml.security.encryption.XMLCipher decryptToByteArray
    SEVERE: XMLCipher::decryptElement called without a key and unable to resolve
    org.apache.xml.security.encryption.XMLEncryptionEx ception: No Key Encryption Key loaded and cannot determine using key resolvers
    at org.apache.xml.security.encryption.XMLCipher.decry ptToByteArray(Unknown Source)
    at org.apache.xml.security.encryption.XMLCipher.decry ptElement(Unknown Source)
    at org.apache.xml.security.encryption.XMLCipher.doFin al(Unknown Source)
    at RequestDecryption.decryptRequest(RequestDecryption .java:220)

    Please help me to come out from this problem.

    Thanks,
    Dinesh

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

    Default

    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, 11:58 AM
  2. encryption
    By Joe2003 in forum Advanced Java
    Replies: 2
    Last Post: 02-06-2008, 10:27 AM
  3. Encryption/Decryption Through AOP
    By SirRawlins in forum Advanced Java
    Replies: 0
    Last Post: 12-19-2007, 03: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
  •