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

project returnung null values #39

Open LamaKhoury opened 7 years ago

LamaKhoury commented 7 years ago

I downloaded this project and run it, but it's returning empty values in the log:

2017-03-09 13:40:20.992 RSAUtil[1260:44798] Original string(207): hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! 2017-03-09 13:40:21.007 RSAUtil[1260:44798] Enctypted with public key: 2017-03-09 13:40:21.015 RSAUtil[1260:44798] Decrypted with private key: 2017-03-09 13:40:21.024 RSAUtil[1260:44798] (PHP enc)Decrypted with private key: 2017-03-09 13:40:21.033 RSAUtil[1260:44798] (PHP enc)Decrypted with public key:

Please advise. Thank you.

kennethphough commented 7 years ago

Can you send your code? Without it it's hard to debug. I've used obj-C-RSA for many of my projects and works just fine.

KH

2017/03/09 3:54、LamaKhoury notifications@github.com<mailto:notifications@github.com> のメッセージ:

I downloaded this project and run it, but it's returning empty values in the log:

2017-03-09 13:40:20.992 RSAUtil[1260:44798] Original string(207): hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! hello world! 2017-03-09 13:40:21.007 RSAUtil[1260:44798] Enctypted with public key: 2017-03-09 13:40:21.015 RSAUtil[1260:44798] Decrypted with private key: 2017-03-09 13:40:21.024 RSAUtil[1260:44798] (PHP enc)Decrypted with private key: 2017-03-09 13:40:21.033 RSAUtil[1260:44798] (PHP enc)Decrypted with public key:

Please advise. Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ideawu/Objective-C-RSA/issues/39, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHOyk3ir_mpzJ9sBnT6TGjV9yln1YS9Qks5rj8xAgaJpZM4MX3QI.

btnguyen2k commented 7 years ago

Maybe you encounter this bug: http://stackoverflow.com/questions/38456471/secitemadd-always-returns-error-34018-in-xcode-8-in-ios-10-simulator/38543243#38543243

LamaKhoury commented 7 years ago

Actually i downloaded your project and run it, but it happened that when i run it on the simulator it gave me null error, but when using it on the ipad i received the requested value. Thank you