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!

Simple encryption algorithm to convert string to a number in java?

807589Dec 19 2008 — edited Dec 21 2008
Hi all,

Can i have a simple encryption algorithm for converting my source 'string' data to equivalent numbers?


Eg:

ABC --> 3456
GHTU --> 7643
ABC --> 3456
OIUSR --> 2374

Resultant number can be any random number. but should be similar for the same combination of strings
like for 'ABC'.

Thanks in advance,
Lakshma
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2009
Added on Dec 19 2008
7 comments
1,896 views