Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to generate a unique 8 byte number for a String in DES

843811Aug 30 2005 — edited Aug 31 2005
Hi All,

Is there any way to generate a unique 8 byte number representation of String?

I know it can be done with DES encryption (while MD5 gives 16 bytes number). My requirement is:

Every time a String is passed - my static method should return the same unique number - all the time.

i.e A String "AAAAAA" will return same unique number all the time. How can I achieve this (8 byte number) by DES Encryption or any other encryption?

Thanking all in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2005
Added on Aug 30 2005
5 comments
163 views