Use reCaptcha in WPF App

余生颓废 提交于 2019-12-12 07:16:09

问题


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!


回答1:


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).




回答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.



来源:https://stackoverflow.com/questions/3963833/use-recaptcha-in-wpf-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!