如何以编程方式获取本地系统密码策略 [英] how to get the local system password policy programmatically
问题描述
如何在c#asp.net中以编程方式阅读本地系统密码策略。
示例:
政策安全设置
强制执行密码历史记录,例如=>记住24个密码
最长密码年龄= => 30天
最短密码年龄= => 1天
最小密码长度= => 7个字符
密码必须符合复杂性要求,例如=>已启用====>但这是详细的。
使用可逆加密存储密码,例如=>残疾人
请帮我急事先生(先生thund3rstruck先生)
how to reading the local system password policy programmatically in c# asp.net.
Example :
Policy Security Setting
Enforce password history like => 24 passwords remembered
Maximum password age like => 30 days
Minimum password age like => 1 days
Minimum password length like => 7 characters
Password must meet complexity requirements like => Enabled ====> But this is in details.?
Store passwords using reversible encryption like => Disabled
Please help me urgent sir(Mr. thund3rstruck)
推荐答案
首先,客户端计算机的注册表是对代码的禁止。 ASP.NET代码完全在服务器上运行,而不是客户端。
其次,这是一个巨大的安全风险。想一想。会不会让一些随机的网站阅读你的注册表,以获得有关你的机器和配置的非常详细的细节?
我不这么认为......
First, the registry of the client machine is off-limits to your code. ASP.NET code runs entirely on the server, not the client.
Second, this is a HUGE security risk. Think about it. Would let some random web site read your registry to get very intimate details about your machine and configuration??
I don't think so...
这篇关于如何以编程方式获取本地系统密码策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!