加密API(服务器/客户端) [英] Encrypt API (server / client)

查看:75
本文介绍了加密API(服务器/客户端)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有许多应用程序使用的PHP REST API:桌面和移动。

我想加密API通信,我需要一个跨平台的解决方案,可以在客户端使用C#,Java,Objective-C和Javascript以及服务器端(PHP)。 />


你能建议一种能帮我解决这个问题的方法吗?



使用加密的主要原因是为了避免对API的暴力攻击并增加安全性。



谢谢!



我的尝试:



我找不到合适的解决方案 - 库/框架。

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.

推荐答案

参见服务器客户端加密 - Google搜索 [ ^ ]。


使用HTTPS进行客户端和服务器之间的所有通信。这将自动加密它们之间的流量。唯一需要做的更改是在客户端中用https://替换http://配置。



HTTPS - 维基百科 [ ^ ]



取决于关于服务器的配置方式,您可以使用让我们加密的免费SSL证书[ ^ ]。
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[^].


这篇关于加密API(服务器/客户端)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆