passwords

How do I determine the password attribute value for the Chef “user” resource?

天大地大妈咪最大 提交于 2019-12-18 12:22:41
问题 I'm trying to create a user account using Chef 11, and am not sure how to calculate the password attribute's value. I've read the User Resource documentation http://docs.opscode.com/resource_user.html, specifically the section "Password Shadow Hash", and am still unsure what exactly to do. This user is being created on an Ubuntu system, so do I use the openssl example they provided and pass the output of that command as the password attribute value? openssl passwd -1 "theplaintextpassword"

Encrypting Passwords

让人想犯罪 __ 提交于 2019-12-18 12:05:52
问题 What is the fastest, yet secure way to encrypt passwords (in PHP preferably), and for whichever method you choose, is it portable? In other words, if I later migrate my website to a different server, will my passwords continue to work? The method I am using now, as I was told, is dependent on the exact versions of the libraries installed on the server. 回答1: If you are choosing an encryption method for your login system then speed is not your friend, Jeff had a to-and-frow with Thomas Ptacek

What is the best practice to store username and password on the iPhone?

末鹿安然 提交于 2019-12-18 11:56:15
问题 Is there a best practice way to store username and password on the iPhone? I am looking for something that is obviously secure but will also keep the info between app updates. 回答1: Use the Apple Keychain. + (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error; + (void) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting

Storing user and password in a database

萝らか妹 提交于 2019-12-18 11:56:02
问题 I am creating a software with user + password. After autentification, the user can access some semi public services, but also encrypt some files that only the user can access. The user must be stored as is, without modification, if possible. After auth, the user and the password are kept in memory as long as the software is running (i don't know if that's okay either). The question is how should i store this user + password combination in a potentially unsecure database? I don't really

How to salt and hash a password value using c#?

混江龙づ霸主 提交于 2019-12-18 11:12:10
问题 Hai guys, I came to know that storing hash value of a password is a safe one from Preferred Method of Storing Passwords In Database... How to salt and hash a password value using c#? How to compare both the values stored in DB and the one given by the user? 回答1: The most popular way to do this is using a hashing algorithm. There's an excellent blog post here about how to use the MD5 algorithm to hash a string, but there are many other examples in the System.Cryptography namespace. As for #2,

Laravel Password & Password_Confirmation Validation

本秂侑毒 提交于 2019-12-18 10:39:20
问题 I've been using this in order to edit the User Account Info: $this->validate($request, [ 'password' => 'min:6', 'password_confirmation' => 'required_with:password|same:password|min:6' ]); This worked fine in a Laravel 5.2 Application but does not work in a 5.4 Application. What's wrong here, or what is the correct way in order to only make the password required if either the password or password_confirmation field is set? 回答1: You can use the confirmed validation rule. $this->validate(

Proper way to send username and password from client to server

白昼怎懂夜的黑 提交于 2019-12-18 10:39:05
问题 This question is not language specific. I'm curious how to properly send username and password from a website login form to a server. My guess is to hash the password, put username/password in the POST body and send it over HTTPS . What's a better way? For good measure I'll mention a less than ideal method: http://www.somesite.com/login?un=myplaintextusername&pw=myplaintextpassword 回答1: The important parts are that you transmit the form data in the POST body (that way it's not cached anywhere

What is currently the most secure one-way encryption algorithm?

早过忘川 提交于 2019-12-18 10:08:02
问题 As many will know, one-way encryption is a handy way to encrypt user passwords in databases. That way, even the administrator of the database cannot know a user's password, but will have to take a password guess, encrypt that with the same algorithm and then compare the result with the encrypted password in the database. This means that the process of figuring out the password requires massive amounts of guesses and a lot of processing power. Seeing that computers just keep getting faster and

How to reset password in meteor application

自作多情 提交于 2019-12-18 09:55:12
问题 I am building a Meteor application and am using the oaf:accounts-entry package to handle my user registration & authentication. I am working on the reset password function right now. However, when I click on "email reset password link", the application doesn't email me anything. Can someone help me or point me to instructions on how to configure the reset password function for the oaf:accounts-entry package? After doing a google search, I could not find instructions on how to configure it.

How do I create a password that timeouts after certain period of time in batch file?

牧云@^-^@ 提交于 2019-12-18 09:49:27
问题 I want to make this code to ask for a password that timeouts after 10 seconds and if you wrote the correct password it goes to :wow but if it's incorrect it just continues the code . (the code is just an example) @ECHO OFF TIMEOUT /t 10>nul exit :wow echo now this is fun! pause exit 回答1: MD5sum Batch scripts, as they live in the world of plain text files, aren't very conducive to storing and matching passwords. After all, the person running the script could just as easily open it in Notepad