• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

Encrypting and decryption in java and oracle using des3

WE have Encrypted a value in java and try to decrypt in oracle using the same key, we do not get the same results.

Any ideas would be really apreciated
0
inzaghi
Asked:
inzaghi
  • 3
2 Solutions
 
Giant2Commented:
The theory says:
keys A,B
Algorithm X
DataYYY

Enchrypt the DataYYY using X and keys A,B obtain jjj

Dechrypt the jjj using X and keys A,B obtain DataYYY

This is a must.
Maybe the conversion occurring in the Oracle DB (I had some problem with it) could change the enchrypted data (jjj), so when try to dechrypt the data is different from the original.
0
 
Giant2Commented:
Could you print the data after the cypher (in java side) and before the decypher (in Oracle side)?
In this manner you can know if the data are changed during the communication from Java to Oracle.
0
 
CEHJCommented:
btw inzaghi - what's getting encrypted - passwords?
0
 
inzaghiAuthor Commented:
Thanks for your help guys I have decided to decrypt/encrypt using oracle and not both
0
 
Giant2Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now