GWT Widget 中的验证码

发布于 2024-12-21 16:02:56 字数 103 浏览 2 评论 0原文

我正在寻找 GWT 的验证码(SimpleCaptcha 或 JCaptcha)小部件。我在网上找到了示例,但它们都使用 servlet 来生成和验证验证码。是否有任何仅限客户端的验证码实现?

I'm looking for a Captcha (SimpleCaptcha or JCaptcha) widget for GWT. I've found examples online, but they all use servlets to generate and validate the Captcha. Are there any client-only Captcha implementations?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魔法少女 2024-12-28 16:02:56

由于隐式安全性,必须在服务器端生成验证码。没有办法肯定客户端的任何内容都是安全的。由于GWT客户端代码已转换为Javascript,因此可以对其进行修改。修改的可能性意味着内容可能不安全。这就是为什么这样的实现都使用服务器端代码生成、作为图像传递并验证所有验证码。

A CAPTCHA has to be generated server-side because of the implicit security. There's no way to be positive that anything client-side is secure. Since GWT client code gets turned into Javascript, it's feasible that it can be modified. Potential for modification means potentially insecure content. That's why implementations like this all use server-side code to generate, pass down as an image, and validate all CAPTCHAs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文