ideawu / Objective-C-RSA

Doing RSA encryption and decryption with Objective-C on iOS
http://www.ideawu.com/blog/post/132.html
Other
1.15k stars 280 forks source link

Can not decrypt with PKCS#1. #47

Open github150620 opened 6 years ago

github150620 commented 6 years ago

I tried the demo in the README.md. If the pubkey and privkey is PKCS#8 format, it works good. But when I replace the pubkey and privkey with PKCS#1 format, the decrypted is empty.

cym330923784 commented 5 years ago

delete this "data = [RSA stripPrivateKeyHeader:data];"