在Windows Forms应用程序中获取Windows用户密码 [英] Get windows user password in a Windows Forms application

查看:75
本文介绍了在Windows Forms应用程序中获取Windows用户密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Windows上登录的用户那里获取密码.我需要此信息作为Windows Forms应用程序的字符串.有什么办法可以通过LDAP,SSO,外部dll或类似方法来做到这一点?非常感谢!

I need to get the password from the user that is logged on on Windows. I need this information as string for a Windows Forms application. is there any way of doing that with LDAP, SSO, external dll or similar? Thanks a lot!

推荐答案

Windows不会将密码存储为纯文本格式.密码使用NTLMv2散列存储,因此经过高度加密.无法对该密码进行反向工程或获取该密码.

Windows does not store the password as plain text. The password is stored hashed with NTLMv2 and therefor highly encrypted. It is not possible to reverse engineer that password or get it.

正如Lucax所说,如果每个程序都可以读取密码,这将是一个巨大的安全问题,因为它将使每个应用程序(包括病毒或特洛伊木马程序)都可以读取每个用户的密码.

As Lucax said it would be a huge security issue if every program could read the password because it would enable every application (also viruses or trojans) to read the passwords of every user.

这篇关于在Windows Forms应用程序中获取Windows用户密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆