0

I have tried iPhone encryption using below post, But i dont know how to decrypt from encrypted data using RSA Encryption. Please direct me and send me sample code if possible. Also is it possible decrypt the data in server side like PHP, JAVA and .NET?

RSA Encryption-Decryption in iphone

Sri

Community
  • 1
  • 1
sri
  • 3,319
  • 7
  • 34
  • 48
  • What RSA code? I see a base64 encoding algorithm, not an RSA encryption algorithm. – jer Jul 16 '10 at 12:46
  • If you use RSA encryption, you just need the private key. It should not matter on which platform, language you decrypt a message. Btw. the accepted answer of the question you refer to just generates a hash, it does not encrypt. – Felix Kling Jul 16 '10 at 12:47

2 Answers2

1

For iphone Check out the CommonCrypto API, the Security framework API and the CryptoExercise sample code http://developer.apple.com/iphone/library/samplecode/CryptoExercise/Introduction/Intro.html

In java you have java.security.interfaces.RSAKey java.security.interfaces.RSAPublicKey etc

In php you have the http://pear.php.net/package/Crypt_RSA/ PEAR package

valexa
  • 4,462
  • 32
  • 48
1

For PHP, check out Crypt_RSA in http://phpseclib.sourceforge.org . The problem with PEAR's Crypt_RSA is that it doesn't really conform to any published standard:

http:/pear.php.net/bugs/bug.php?id=16870

http:/pear.php.net/bugs/bug.php?id=7257

user260294
  • 161
  • 1
  • 2