passwords

Is password input sanitization required?

萝らか妹 提交于 2019-12-18 04:24:16
问题 I'm trying to sanitize any data that's inputted by making sure the data is valid for a particular field (e.g. a name can't contain special characters/numbers etc..) However, I'm not sure what to do when it comes to a password field. Would I even need to bother with any sanitization as the password is simply hashed? If the user was to inject anything malicious via the password textbox, should I bother checking for anything suspicious? AFAIK, some users may (should!) have special characters

ADODB Connection String: Workgroup Information file is Missing?

别等时光非礼了梦想. 提交于 2019-12-18 04:17:27
问题 I have a few data sources in access that I need to connect to programatically to do things with behind the scenes and keep visibility away from users. Said datasource has a password 'pass' as I'm going to call it here. Using this connection method I get an error attempting to use the open method Dim conn as ADODB.Connection Set ROBBERS.conn = New ADODB.Connection conn.open "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=\\pep-home\projects\billing\autobilling\DPBilling2.mdb;" _ & "Jet

How can I change the dots to another character on password field in iOS Swift

半世苍凉 提交于 2019-12-18 04:15:18
问题 I have a Text Field and I would like to replace the default dot character to something else when the password is hidden. Is there any way to do this easily? 回答1: 2 options here: Use a normal textfield without the secure input option. When a user enters a character, save it to a string variable, and replace it in the textfield with the character you wish to present instead of the bullets. Here's the code (will show the password as $$$$): var password: String = "" func textField(textField:

what is best possible way of salting and storing salt?

空扰寡人 提交于 2019-12-18 04:01:54
问题 Hi guys I have read about password salting, but this might sound a little odd. But how do I store and secure the salt. For example in a multi tire architecture say I use the client machine’s GUID to generate my salt then the user gets restricted to a single machine but if I use random salt it has to be stored somewhere. Few days back I saw an sample application where the hash and the salt was generated on the client system whenever a new user was created and then the salted password and the

Salt, passwords and security

流过昼夜 提交于 2019-12-17 23:22:59
问题 I've read through many of the questions on SO about this, but many answers contradict each other or I don't understand. You should always store a password as a hash, never as plain text. But should you store the salt (unique for each user) next to the hashed password+salt in the database. This doesn't seem very clever to me as couldn't someone gain access to the database, look for says the account called Admin or whatever and then work out the password from that? 回答1: A lot of people are

Java - How to store password used in application? [duplicate]

两盒软妹~` 提交于 2019-12-17 22:58:10
问题 This question already has answers here : Handling passwords used for auth in source code (5 answers) Closed 4 years ago . I'm developing an application which read some data from a db. The connection to the db is performed through standard login/password mechanism. The problem is: how to store the db password? If I store it as a class member, it can be easily retrieved through a decompiling operation. I think that obfuscation doesn't solve the problem, since a string password can be found

How can I create a password?

六月ゝ 毕业季﹏ 提交于 2019-12-17 22:43:46
问题 I want to give maybe a million password to some users that should be like: It must have at least 6 characters It must have digits and also letters Should I use Random here? How? 回答1: RandomStringUtils from Apache Commons Lang provide some methods to generate a randomized String, that can be used as password. Here are some examples of 8-characters passwords creation: // Passwords with only alphabetic characters. for (int i = 0; i < 8; i++) { System.out.println(RandomStringUtils

Password does not match after being encrypted using crypt() and password_hash() function

非 Y 不嫁゛ 提交于 2019-12-17 22:36:52
问题 I modified my old post. I tried the crypt() function and now trying to work with password_hash() and password_verify() to verify the encrypted password coming from database but on each call, password_hash() function retuns a different encrypted string and password_verify() cannot match it. This is how I am doing this. //please ignore the syntax error if any $data = '11'; $dbpass = password_hash($data, PASSWORD_BCRYPT); echo $dbpass; // displays the random strings on each page refresh. Once

How do I prevent exposure of my password when using RGoogleDocs?

戏子无情 提交于 2019-12-17 22:11:41
问题 I love RGoogleDocs and use it a lot. However, I don't like entering my password all the time. Obviously I could just type the password into the R script and would never have to enter it again. But thats not viable since it means that my password would be left unencrypted on my harddrive. Furthermore I share my scripts with colleagues. To get around the problem I came up with this. if(exists("ps")){ print("got password, keep going") } else { ps <-readline(prompt="get the password in ") }

Generate password in python

冷暖自知 提交于 2019-12-17 21:55:34
问题 I'dl like to generate some alphanumeric passwords in python. Some possible ways are: import string from random import sample, choice chars = string.letters + string.digits length = 8 ''.join(sample(chars,length)) # way 1 ''.join([choice(chars) for i in range(length)]) # way 2 But I don't like both because: way 1 only unique chars selected and you can't generate passwords where length > len(chars) way 2 we have i variable unused and I can't find good way how to avoid that So, any other good