passwords

Can I use an already MD5 encoded password in Digest Authentication

僤鯓⒐⒋嵵緔 提交于 2019-12-04 05:59:34
I have MD5 hashes of passwords in a database that I want to use against HTTP AUTH DIGEST. But in reading the docs, it looks like the digest hash contains a hash of the username,realm and plaintext password. Is there any way to use the MD5 hash of the password in this situation? No. If the hash they need is generated like so: MD5(username + realm + password) You are out of luck. If they are hashing the password like so: MD5(MD5(password) + username + realm) You'd be able to do that with just the hashed password. But it doesn't sound like that's what's going on. Remus Rusanu No, you have to

How to use php's password_hash() method..?

本小妞迷上赌 提交于 2019-12-04 05:51:15
问题 I'm getting password does not match when I login, when a user signup, I'm saving password as $password = password_hash($this->input->post('password'), PASSWORD_BCRYPT); when a user login I'm checking password like this, $hash = password_hash($password, PASSWORD_BCRYPT); $this->db->select('password'); $this->db->from('usersdetails'); $this->db->where('email', $email); $this->db->limit(1); $query = $this->db->get(); $passwordcheck = $query->row()->password; if (password_verify($passwordcheck,

Is there a way to set ASP.NET TextBox password char when in Password TextMode?

爱⌒轻易说出口 提交于 2019-12-04 05:35:35
问题 I want that when the user types in text, it should show • rather than a simple asterisk, is there a way (in win-forms' TextBox there is a property PasswordChar, what is it's similar in web)???? 回答1: No this is browser specific. Maybe you could fake this with javascript, but I wouldn't recommend it. 来源: https://stackoverflow.com/questions/1053940/is-there-a-way-to-set-asp-net-textbox-password-char-when-in-password-textmode

check is SSH prompt for password or not

ε祈祈猫儿з 提交于 2019-12-04 04:40:10
Hi I have a list of few hundred hosts. I want to run a command using ssh in a loop, if my ssh keys are set properly, then I execute a command if I get challenge for password I want to skip to the next host So lets say I have hosta and hostb and hostc. I can do a ssh to hosta & hostc , but hostb is challenging me for password. Is there a way to check if a hosts will challenge me for password or not? So my logic would be if I get challenge from $host; then skip host else ssh $host 'command' fi I hope this makes sense. Thanking you in advance for host in host1 host2 host3; do ssh -o

Curl fails on sftp password authentication

泪湿孤枕 提交于 2019-12-04 04:34:06
问题 When I manually sftp using username and password it works fine, when using curl it fails. The same script will successfully connect to other servers with no problem. Because I can manually log in and other clients don't have a problem the server admins aren't much help. Here is the curl failed attempt: curl -v --insecure --user username:password sftp://someurl.com * Trying 199.187.***.***... * Connected to someurl.com (199.187.***.***) port 22 (#0) * SSH MD5 fingerprint:

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

放肆的年华 提交于 2019-12-04 04:22:55
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. PrincipalContext needs a plain-text password so I can not do a salted hash as everyone recommends for

Is it safe to store (hashed) passwords in a cookie?

大兔子大兔子 提交于 2019-12-04 04:20:33
问题 I've read some articles and questions on SO (e.g. here) that say you shouldn't store a user's password in a cookie. If the password is salted and hashed, why is this insecure? In particular, why is it less secure than using sessions, the alternative usually suggested? If the user wants to stay logged in then surely this new cookie (with a session ID/hash) is exactly as secure as the one with the user's password? If the cookie is "stolen" on some way the attacker can log in as the user in the

Safe way to store decryptable passwords

对着背影说爱祢 提交于 2019-12-04 03:43:36
I'm making an application in PHP and there is a requirement that it must be possible to decrypt the passwords in order to avoid problems in the future with switching user database to different system. Consider that it's not possible to modify this future system's password method and I need plain text passwords in order to have the passwords generated. The plan is to encrypt the user's password with a public key that is stored on the server. Authentication is done by encrypting the input and comparing the results. There is NO decryption done. The private key capable of the decryption is stored

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

陌路散爱 提交于 2019-12-04 03:42:30
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? It is normal, if by saying "accessing the DB via mysql -u root -p works fine" you mean that you are running it while

Password strength library - Objective C

自作多情 提交于 2019-12-04 03:42:05
I am looking for a open source component that can estimate strength of a password. Searching the web, I found this very interesting: https://github.com/lowe/zxcvbn (and for more details about it: https://tech.dropbox.com/2012/04/zxcvbn-realistic-password-strength-estimation/ ). What impressed me was the ability to analise the given password comparing to "common passwords, common American names and surnames, common English words, and common patterns like dates, repeats (aaa), sequences (abcd), and QWERTY patterns." Does anyone know something similar that can be used for an iOS/Mac app? If not,