passwords

What to do when you can not save a password as a hash

穿精又带淫゛_ 提交于 2019-12-05 21:36:59
问题 I have a program that uses System.DirectoryServices.AccountManagement.PrincipalContext to verify that the information a user entered in a setup screen is a valid user on the domain (the computer itself is not on the domain) and do some operations on the users of the domain. The issue is I do not want the user to need to enter his or her password every time they run the program so I want to save it, but I do not feel comfortable storing the password as plain-text in their app.config file.

Safety benefits of the Password in WPF PasswordBox not being bindable?

醉酒当歌 提交于 2019-12-05 21:16:26
I just stumbled across the fact that the Password property of WPF PasswordBox es is not bindable for security reasons , which makes using them quite cumbersome in a MVVM context. Answers like https://stackoverflow.com/a/1493330/3198247 suggest that otherwise, the password might be stored in plain text in memory at runtime, which would be a bad idea since it could potentially be read by malware. However, I still don't seem to understand the reason in general or that answer. There, it says Keeping your password in plain text on the client machine RAM is a security no-no. . However, the password

MariaDB Warning: 'root@localhost' has both … The password will be ignored

天大地大妈咪最大 提交于 2019-12-05 20:27:21
问题 I have installed MariaDB on Ubuntu LTS 16.04. Then I have run /usr/bin/mysql_secure_installation and set a root password. Accessing the DB via mysql -u root -p works fine. But checking the status with service mysql status opens a log file with this warning: [Warning] 'user' entry 'root@localhost' has both a password and an authentication plugin specified. The password will be ignored. The questions are: Is this a worry or completely normal? If this is a worry, how can I fix it? 回答1: It is

bash: does expect work with multiple password prompts?

一个人想着一个人 提交于 2019-12-05 20:22:58
I am currently using expect to pass in passwords so my scripts can run automatically without me having to sit around and type in the same password over and over again. Important: Please don't comment about how big of a security risk this is or how I should be using ssh keys, I would use those if I could, but the setup I have to work with doesn't allow it. My code looks like the following: #!/bin/sh PASS=mypassword /usr/bin/expect -c " spawn python Tools/python/install.py expect -nocase \"password:\" {send \"$PASS\r\"; interact} " The problem I have is that install.py prompts for the same

Programmatically Change Expired Oracle DB Password?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 19:21:28
Where I work, some databases get copied down from our production environment to our test environment, but the DBAs set all the passwords to expired on the (new) test DB right after the copy so that the production passwords are not known. So if I run sqlplus and connect to the test db with a specific username it immediately prompts me for a new password. Is there a way via a java app or shell scripting to automate the changing of an expired oracle 10g database password for a specific user? On Unix If you're on unix, you can do with a shell script. I have tested it like so: drop user foo cascade

validating and changing a user's password

雨燕双飞 提交于 2019-12-05 18:01:12
I have a simple C# windows form which acts as a login, but also has a form to change the password of a user. When you click on Change Password the form loads with a text box of current password, new pass and confirm new pass, and one save button. I have stored username in label so that current password can be checked if it is valid from database or not. I am storing these in a table which I created in Microsoft SQL Server 2008. The code is as follows so far. SqlConnection connect = new SqlConnection(str); connect.Open(); string username = label_username.Text; string password = textBox_Current

how to use hashed password in impersonate of ASP.NET

╄→尐↘猪︶ㄣ 提交于 2019-12-05 17:30:54
I have an ASP.NET application that requires impersonation as an administrator user. In web.config: <identity impersonate="true" userName="administrator" password="password"/> The customer complained about saving the password in clear text format. Is there a way to save the password here as hashed? aspnet_regiis with the appropriate switch should do the trick, see this article. 来源: https://stackoverflow.com/questions/2912903/how-to-use-hashed-password-in-impersonate-of-asp-net

Clientside password hashing

我与影子孤独终老i 提交于 2019-12-05 16:58:57
A friend of mine and me are having a discussion about whether we should pre-hash the passwords of the users of our webapp before sending it to our servers. I know that there are multiple questions that already handle this topic but they're all about transferring it securely to the server. Our idea is not about the transfer security (we use SSL) we want to hash clientside to prevent that the "real" passwords reach our server. The idea came as Twitter announced their bug that caused passwords to be printed to a logfile in cleartext. We are currently discussing about whether this concept makes

HttpListener: how to get http user and password?

偶尔善良 提交于 2019-12-05 16:46:05
问题 I'm facing a problem here, with HttpListener. When a request of the form http://user:password@example.com/ is made, how can I get the user and password ? HttpWebRequest has a Credentials property, but HttpListenerRequest doesn't have it, and I didn't find the username in any property of it. Thanks for the help. 回答1: What you're attempting to do is pass credentials via HTTP basic auth, I'm not sure if the username:password syntax is supported in HttpListener, but if it is, you'll need to

How can I write my HTML login form to explicitly enable LastPass?

核能气质少年 提交于 2019-12-05 16:43:21
问题 How can I write my HTML login form to be guaranteed to work with LastPass, or at least make it as likely as possible to work? Some sites require the "Save All Entered Data" to work properly with LastPass, but as a site developer I'm looking for something better. What do I need to do to ensure LastPass default mode ("Save Site") works as flawlessly as possible? I can't find any official documentation, or really even any good blog posts with suggestions, but that would certainly answer my