• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

decryption problem...

 
Muneeb Kiani
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello...!

i'm trying to implement a chat between client(j2me) and server(j2se), and all the communication will be encrypted(using RSA)... i'm using iaik-jce-me api for cryptography on both side... i m facing a problem, when i'm trying to decrypt a message on other side it throw an exception

iaik.me.security.CryptoException: Invalid PKCS#1 padding: length of encrypted message does not match modulus length! or
iaik.me.security.CryptoException: Invalid PKCS#1 padding: no leading zero! and sometimes it decrypt... please help me if anyone is familiar with such type of exception

Thanks...
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17646
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the first thing you need to do is make sure that the encryption process isn't causing you to send/receive binary data over text transmission channels.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic