Use reCaptcha in WPF App

2019-03-30 18:39发布

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!

标签: c# wpf recaptcha
2条回答
三岁会撩人
2楼-- · 2019-03-30 19:22

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.

查看更多
别忘想泡老子
3楼-- · 2019-03-30 19:23

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

查看更多
登录 后发表回答