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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

converting RSA encrypted byte array to String and back to byte array gives

843811May 30 2005 — edited May 30 2005
hi friends
after encryption using any algorythm i get a byte array . i then convert this byte array to string by passing to simple String constrauctor . String abc = new String(byte[] array) ... Then when i extract the bytes again from that String using getBytes() funtion , i get different sets of bytes .. and i am not able to decrypt it....
my project requires me to send a string across after encryption so i cant even send the original byte[] array directly to decryption which otherwise works fine..
so please help me on how to convery byte[] array to String and then get back the byte[] array bck from string
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2005
Added on May 30 2005
6 comments
1,929 views