将 reCaptcha 私钥放在 html 页面中是否安全?
Is it safe to put the reCaptcha private key in html page?
每个人都可以看到我的 HTML 代码以及相应的我的 reCaptcha 私钥。安全吗?
简单回答:否
正如您所说,所有内容都 public 在您的页面上,即使有很多混淆,也总是可以检索它。
来自 reCAPTCHA 文档:
The secret key authorizes communication between your application
backend and the reCAPTCHA server to verify the user's response. The
secret key needs to be kept safe for security purposes.
每个人都可以看到我的 HTML 代码以及相应的我的 reCaptcha 私钥。安全吗?
简单回答:否
正如您所说,所有内容都 public 在您的页面上,即使有很多混淆,也总是可以检索它。
来自 reCAPTCHA 文档:
The secret key authorizes communication between your application backend and the reCAPTCHA server to verify the user's response. The secret key needs to be kept safe for security purposes.