GWT Widget 中的验证码
我正在寻找 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于隐式安全性,必须在服务器端生成验证码。没有办法肯定客户端的任何内容都是安全的。由于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.