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

c# TrimEnd -1 removes last character plus preceding characters if they are repeating

c# string repeating

I want to simply remove the last character of a string that is of an undefined length. This is what I have:

Do I need to save the image at @1x, @2x, @3x?

ios iphone ipad cocoa-touch retina

I have a section on an app of mine that shows all files created and saved by the user. To speed up things, when the user saves the project I save a thumbnail of the rendered project. That thumbnail...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.