Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DES Encryption

Status
Not open for further replies.

grega

Programmer
Feb 2, 2000
932
GB
I use dbms_obfuscation_toolkit.DESEncrypt with a given string and key to produce an encrypted string.

I have a java class which takes the same string and key, does a DES encryption using JEncrypt ( and seems to produce a different encrypted string.

Any ideas why this would be happening?

(I'm doing this because I need to take a password encrypted by Oracle and decrypt it within a Java app).

Greg.
 
Most password encryptors add what is called a "salt" to the password as they encrypt it, so if you encrypt the same password multiple times you get different results. This is done to defeat dictionary attacks, where an attacker has a huge lookup table. If there is a randomization, that technique is much more difficult.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top