• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 404
  • 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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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