password-storage

Update object properties

点点圈 提交于 2019-12-02 07:06:50
I'm using Struts 2, my problem is that I don't want to update all my object properties because I got some sensitive data. Here is my code example public class person { private name; private email; private password; } In my form for example I display the name and email for update ,so when I update my person properties after submission ,the password property of the person gets the value null,but when I put the property password in the <s:hidden> tag in the form the update works fine. How to make Struts 2 remember the value of the password without using the hidden tag in the form ? If you need to

Securely storing credentials that can't be encrypted

橙三吉。 提交于 2019-12-02 03:31:35
问题 I have a client that's running an aggregator of information from multiple accounts. The database needs to store usernames and password to other websites in a way that can be used later by a script to log into those websites to retrieve data. Rather than store them as plain text, I'm thinking we can hash them for storage. Obviously, someone could still access the plain text version if they had access to both the code and the database, but not if they only had one or the other. Any better ideas

Storing bcrypt hashes

拥有回忆 提交于 2019-12-01 09:40:32
问题 According to PHP's doc, bcrypt salt are made of "$2a$", a two digit cost parameter, "$", and 22 digits from the alphabet "./0-9A-Za-z" So, if i use the crypt() function to hash my passwords, the resulting output include the first 7 chars ($2a$10$, if 10 is the cost parameter) as a part of the salt - and, according to all examples i was able to find across the internet, this complete output is written to db. I'm wondering what's the point in storing those first characters with the rest of the

Storing bcrypt hashes

杀马特。学长 韩版系。学妹 提交于 2019-12-01 09:31:32
According to PHP's doc, bcrypt salt are made of "$2a$", a two digit cost parameter, "$", and 22 digits from the alphabet "./0-9A-Za-z" So, if i use the crypt() function to hash my passwords, the resulting output include the first 7 chars ($2a$10$, if 10 is the cost parameter) as a part of the salt - and, according to all examples i was able to find across the internet, this complete output is written to db. I'm wondering what's the point in storing those first characters with the rest of the salt and the encrypted data. Their meaning is fully clear to me, but i can't really understand why such

Where to store db passwords when using Windows .NET or ASP.NET applications

寵の児 提交于 2019-11-30 16:48:33
问题 I have a scenario that has been troubling me for years. If you have to connect to a database or other service (like a web service) using a username and password, where would be the safest place to store this information if you are connecting through a .NET assembly? I understand that you would have to encrypt the password, but then you run into a kind of chicken-egg problem -- fine -- you can encrypt it, but then where do you put the key? In .NET, you can't hardcode the password because you

How to not hardcode passwords?

自古美人都是妖i 提交于 2019-11-29 09:13:59
问题 In my last question "Portable database for storing secrets" the best answer until now tell to use sqlite-crypt. Reading sqlite-crypt docs, the new param for open the database is the pass-phrase. Of course, I don't want hardcode the password, so I was thinking what the best, simple and fast method to store that password? 回答1: Some options. Ask the user for a passkey (aka they memorize one password to get to all their password) (good idea) Create a key on the first startup of the app, which is

Sequelize: don't return password

僤鯓⒐⒋嵵緔 提交于 2019-11-28 18:19:56
I'm using Sequelize to do a DB find for a user record, and I want the default behavior of the model to not return the password field for that record. The password field is a hash but I still don't want to return it. I have several options that will work, but none seems particularly good: Create a custom class method findWithoutPassword for the User model and within that method do a User.find with the attributes set as shown in the Sequelize docs Do a normal User.find and filter the results in the controller (not preferred) Use some other library to strip off unwanted attributes Is there a

Password storage in source control

喜夏-厌秋 提交于 2019-11-28 05:02:24
We store all our application and db passwords in plain text in source control. We do this as our build/deploy process generates required configuration files and also does actual deploys that require these passwords (ie: running sql against a database requires you logon to the db using valid credentials). Has anyone had a similar need where you were able to implement this type of functionality while not storing the passwords in plain text? If your plan is to store all the code and configuration information to run a production system directly from version control, and without human intervention,

What is the best practice for securely storing passwords in Java

隐身守侯 提交于 2019-11-27 13:32:21
What would be the recommended way for storing passwords in a Java desktop application? I want the user to have the ability to enter the credencials only once and not be prompted again. On personal projects I've been using the Preferences API, but I'm assuming this is no different than storing it in plain text (security wise). Many thanks EDIT: Many thanks for your suggestions. There seems to be some confusion, no doubt because I might have not made the question very clear... I'll give an hypotetical scenario: Say I'm creating a simple front-end for a remote database which creates a connection

How do I create and store md5 passwords in mysql

杀马特。学长 韩版系。学妹 提交于 2019-11-27 06:34:32
Probably a very newbie question but, Ive been reading around and have found some difficulty in understanding the creation and storage of passwords. From what i've read md5/hash passwords are the best ways to store them in a database. However, how would I go about creating those passwords in the first place? So say I have a login page with user bob, and password bob123 - how will I 1. get bobs password into the database to begin with (hashed) 2. how do I retrive and confirm the hashed password? Thanks Edit 2017/11/09: Be sure to take a look at the answer from O Jones. First off MD5 isn't the