Use reCaptcha in WPF App

2019-03-30 19:03发布

问题:

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.



标签: c# wpf recaptcha