如何使用c#创建自己的验证码并在asp.net中验证它?

时间:2022-03-09 02:08:41

How do I create my own captcha and test that response is generated by a person? is it possible to do it in asp.net?

如何创建自己的验证码并测试一个人生成的响应?是否有可能在asp.net中做到这一点?

2 个解决方案

#1


5  

You can use reCAPTCHA with ASP.NET.

您可以在ASP.NET中使用reCAPTCHA。

Sign up for a free app key here, download the library and follow the quick start.

在此注册免费的应用程序密钥,下载库并按照快速入门。

#2


1  

You could create your own images of numbers/words from paint by doodling and store the file location and corresponding string in the database. You could later randomly pick an entry, show the image and then verify it with the string value column.

您可以通过涂鸦在绘画中创建自己的数字/单词图像,并将文件位置和相应的字符串存储在数据库中。您可以稍后随机选择一个条目,显示图像,然后使用字符串值列进行验证。

Or you could use external service like http://www.google.com/recaptcha/captcha

或者您可以使用http://www.google.com/recaptcha/captcha等外部服务

#1


5  

You can use reCAPTCHA with ASP.NET.

您可以在ASP.NET中使用reCAPTCHA。

Sign up for a free app key here, download the library and follow the quick start.

在此注册免费的应用程序密钥,下载库并按照快速入门。

#2


1  

You could create your own images of numbers/words from paint by doodling and store the file location and corresponding string in the database. You could later randomly pick an entry, show the image and then verify it with the string value column.

您可以通过涂鸦在绘画中创建自己的数字/单词图像,并将文件位置和相应的字符串存储在数据库中。您可以稍后随机选择一个条目,显示图像,然后使用字符串值列进行验证。

Or you could use external service like http://www.google.com/recaptcha/captcha

或者您可以使用http://www.google.com/recaptcha/captcha等外部服务