跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[编程] 请问一下为了防止接口被刷,前端是否值得加密数据后传输

发表于

这周发现有一个接口被同行搞事情,抓取到了提交数据的 api, 一直换着 ip 来提交假数据。

在论坛看到这个帖子 https://www.v2ex.com/t/955561 提到了 AES + RSA 。目前刚刚实现 AES 加密数据,RSA 加密 AES 密钥, js 文件也加密混淆了一下。但是弊端在于 RSA 的公钥还是保存在前端。

从目前来看,效果是达到了,没有被投假数据了。不知道这种方式是否是比较常用的,有没有其它的方式

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.