ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportAES Decryption in IIB using java Compute Node

Post new topicReply to topic
AES Decryption in IIB using java Compute Node View previous topic :: View next topic
Author Message
chaithuboby
PostPosted: Tue May 15, 2018 4:45 am Post subject: AES Decryption in IIB using java Compute Node Reply with quote

Newbie

Joined: 22 Jun 2017
Posts: 3

I am receiving 256 bit AES encrypted text from a Payment system, which i need to decrypt in IIB.

I am using Java to decrypt. I have placed the Unrestricted policy files in the /opt/mqm/java/jre64/jre/lib/security location and restarted the EG and broker.Also placed dependent JARS in /var/mqsi/shared-classed. But still getting java.security.InvalidKeyException: Illegal key size Exception.

FYI: Using Java code from this link to achieve decryption
https://goo.gl/hRuuLZ


Is there anything else which i am missing.Please help here.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 15, 2018 1:50 pm Post subject: Re: AES Decryption in IIB using java Compute Node Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19661
Location: LI,NY

chaithuboby wrote:
I am receiving 256 bit AES encrypted text from a Payment system, which i need to decrypt in IIB.

I am using Java to decrypt. I have placed the Unrestricted policy files in the /opt/mqm/java/jre64/jre/lib/security location and restarted the EG and broker.Also placed dependent JARS in /var/mqsi/shared-classed. But still getting java.security.InvalidKeyException: Illegal key size Exception.

FYI: Using Java code from this link to achieve decryption
https://goo.gl/hRuuLZ


Is there anything else which i am missing.Please help here.


Apparently your encryption / decryption key is the wrong size...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
chaithuboby
PostPosted: Wed May 16, 2018 2:04 am Post subject: Reply with quote

Newbie

Joined: 22 Jun 2017
Posts: 3

When i tried executing the code in Eclipse and placing the unrestricted policy JARs in Java's lib/security folder, the decryption worked.

In Toolkit it is throwing java.security.InvalidKeyException: Illegal key size Exception when i placed unrestricted jars in /opt/mqm/java/jre64/jre/lib/security location and restarted the EG. i have placed all dependent jars in /var/mqsi/shared-classes
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportAES Decryption in IIB using java Compute Node
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.