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!

limit encrypted string length to 20 characters

843811Jun 3 2008 — edited Jun 4 2008
Hi,

How do I limit encrypted string to 20 characters or 'x' number of characters?

e.g. encrypting "hello" might produce the following out put -> "F1==iI09Poiui7@=1kjuyo" but if I wanted to limit the length 20 characters or less. Is there any
possibility of doing this? If yes, Can someone help me out?

Thanks
Mathew
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2008
Added on Jun 3 2008
6 comments
1,558 views