posted 15 years ago
hi friends!
i have got a problem with RSA en-/decryption. following simple example uses the public key from the keypair for encryption, and the private key for decryption. sometimes it works and sometimes there's a badpaddingexcpetion trown. i searched the internet about this problem but didn't find any working solution. perhaps, this is bug? i hope you can help me. here comes the code:
"Wenn man irgendwann mal von allen akzeptiert wird, dann weiß man, dass man irgendwas falsch gemacht hat."
Excerpt by: Mr. Weidner