Decrypt data Xcode to PHP

I'm making an application with Xcode which encrypts information using the private key of a certificate, this information is sent to a server using a POST in PHP (Eg: username = "encrypted data") and I want to decrypt this information in the PHP with the private key and get the real information, I encrypted the information with SecKeyEncrypt in Xcode and then sent to PHP, but how I can decrypt it with the private key in php?

Answers


The function you are looking for is mcrypt_decrypt that comes with the mcrypt extension.


Need Your Help

MYSQL Data Import

mysql sql sql-server

I am trying to import a large csv file into MySQL. It's about 1.4 GB and consists of ~ 1MM rows and 100 columns.

How to play HLS video in Android?

android html5 webview stock twitch

Here is stream video from justin.com or twitch.tv this CHANNEL