Skip to Main Content

Java Programming

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!

Generate short unique ID from a long String ?

800371Jan 28 2009 — edited Jan 28 2009
Greetings all,

I have a long unique string (protien sequence) like
vmtqtplslpvnigdqasisckstksllnsdgftyldwylqkpgqspqlliylvsnrfsgvperlsgsgsgtdftlkisrveaedlgvyycfqsnylpytfgggtkleikradaapt
And I want to generated a short unique ID using this string.(like the session ids).I want this because, I want to use the new ID as a file name and using the long sequence is not appropriate.

What can I use for this MD5/hasing??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2009
Added on Jan 28 2009
29 comments
7,997 views