How to generate a unique 8 byte number for a String in DES
843811Aug 30 2005 — edited Aug 31 2005Hi 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.