客户端和服务器端密码强度验证库

时间:2021-05-04 19:38:52

I'm trying to find a library for .Net which will allow me to validate a user-entered password, and check its strength.

我正在尝试为.Net找到一个库,这将允许我验证用户输入的密码,并检查其强度。

I've found lots of links and recommendations for client-side implementations (mostly jQuery) and also examples of how to implement checks server-side.

我发现了很多关于客户端实现的链接和建议(主要是jQuery),以及如何实现检查服务器端的示例。

However, since its best-practice to validate both client-side and server-side for user submitted data, I'm trying to find something which covers both. Otherwise I will have to keep the two implementations in sync if any changes are made.

但是,由于它是验证用户提交数据的客户端和服务器端的最佳实践,因此我试图找到涵盖两者的内容。否则,如果进行任何更改,我将不得不保持两个实现同步。

Is there anything that would provide this symmetry, or am I thinking about this the wrong way?

有没有什么可以提供这种对称性,或者我是否以错误的方式思考这个问题?

1 个解决方案

#1


1  

Take a look at this link, it used XML config which is shared by client and server side.

看看这个链接,它使用了由客户端和服务器端共享的XML配置。

#1


1  

Take a look at this link, it used XML config which is shared by client and server side.

看看这个链接,它使用了由客户端和服务器端共享的XML配置。