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!

RSA encryption problem

843811Jan 9 2010 — edited Jan 10 2010
I tried to make an RSA Encryption but I have two problems :
first : when I 'm trying to encrypt english text and decrypt it , the decrypted text is the same as the origional text plus some symbols like : u'xST§9qأçـٌI®ـ°½گًہgآ’©"Yًاl-µ~¨گZ¼¢ِجAضg–ï=r>Vg†GنPUچµ`:C0كإ>m#ظO×ك'ûcظ?…ü~ة$¹f¥ضçôO4,ئLK–gICر¼‹‘ؤ´¶يڈo[،‚صêُ

second: when I'm trying to encrypt an Arabic text the program throws an Exception javax.crypto.BadPaddingException: Message is larger than modulus

can anybody tell me , why is this ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 7 2010
Added on Jan 9 2010
8 comments
756 views