在 WPF 应用程序中使用 reCaptcha
我正在寻找如何将 WPF 桌面应用程序与 reCaptcha 集成的解决方案!有人知道解决方案吗?
我正在为我的应用程序开发注册模块,并且需要良好且简单的验证码。
谢谢!
I'm looking for solution how to integrate WPF desktop application with reCaptcha! Anyone knows the solution?
I'm working on registration module to my application, and need good and simple captcha.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅 https://developers.google.com/recaptcha/docs/display 和 https://developers.google.com/recaptcha/docs/verify。
您可以向 http://www.google.com/recaptcha/api/challenge?k= 提出请求your_public_key 并解析 ChallengeValue。该值可用于通过 http://www.google.com/recaptcha/api 获取 recaptcha 图像/image?c=challenge_value。 Afaik URL 图像可以直接在 WPF 中显示。
让用户输入到 TextBox(或类似)控件中。
如需验证,请使用此输入并向 http://www.google.com/recaptcha/api/verify(参见上面的文档)。
See https://developers.google.com/recaptcha/docs/display and https://developers.google.com/recaptcha/docs/verify.
You could make an request to http://www.google.com/recaptcha/api/challenge?k=your_public_key and parse the ChallengeValue. This value can be used to get the recaptcha image via http://www.google.com/recaptcha/api/image?c=challenge_value. Afaik URL Images can be displayed in WPF directly.
Let the user input into a TextBox (or similar) control.
For verification, use this input and make a request to http://www.google.com/recaptcha/api/verify (see documentation above).
您尝试过吗 - http://code.google.com/apis/recaptcha/文档/aspnet.html。它说它适用于任何 .Net 语言,包括 C#。还有此页面虽然已经2岁了。
Have you tried this - http://code.google.com/apis/recaptcha/docs/aspnet.html. It says it works in any .Net language, including C#. There is also this page although it is 2 years old.