Click here to Skip to main content
13,863,412 members
Rate this:
Please Sign up or sign in to vote.
See more:
We have a PHP REST API that is consumed by many applications: desktop and mobile.
I want to encrypt the API communications and I need a cross-platform solution that works on client side in C#, Java, Objective-C and Javascript as well as on server side (PHP) .

Can you please suggest a way that will help me solve this issue?

The main reason for using encryption is to avoid brute force attacks on the API and to increase the security.

Thank you!

What I have tried:

I did not find a suitable solution - a library/framework.
Updated 12-Feb-19 5:47am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Use HTTPS for all communication between the client and the server. This will automatically encrypt the traffic between them. The only change required will be to replace "http://" with "https://" in the client configuration.

HTTPS - Wikipedia[^]

Depending on how your server is configured, you might be able to use a free SSL certificate from Let's Encrypt[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190214.1 | Last Updated 12 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100