Java RSA decryption did not work for decrypted data with public key in IPhone

Hi i created my rsa public key in java and sent it to my friend. A friend of mine uses an IPhone, he encrypted the data with this key and sent me the decrypted data, then I decrypted the data with my private key. But I am getting errors for Bad Padding. Me and my friend both did not use spaces explicitly for RSA.

Thanks Bapita

0


a source to share


1 answer


your question is not clear, has it been decoded twice?



edit to edit: you're still wrong, you can read how public key cryptography works before asking questions about your specific implementation. it sounds like you are very unfamiliar with the process

+2


a source







All Articles