passwords

How to validate that a file is a password protected ZIP file, using C#

懵懂的女人 提交于 2019-12-07 06:30:45
问题 Given a path to a file, how can I validate that the file is a password-protected zip file? i.e., how would I implement this function? bool IsPasswordProtectedZipFile(string pathToFile) I don't need to unzip the file -- I just need to verify that it's a ZIP and has been protected with some password. Thanks 回答1: Using SharpZipLib, the following code works. And by works I mean entry.IsCrypted returns true or false based on whether or not there is a password for the first entry in the zip file.

Security Beyond a Username/Password?

早过忘川 提交于 2019-12-07 06:30:38
问题 I have a webapp that requires security beyond that of a normal web application. When any user visits the domain name, they are presented with two text fields, a username field, and a password field. If they enter a valid user/pass, they get access to the web application. Standard stuff. However, I'm looking for additional security beyond this standard setup. Ideally it would be a software solution, but I'm also open for hardware solution as well (hardware=key fobs), or even procedural changes

PBKDF2 with HMAC in Java

余生长醉 提交于 2019-12-07 06:08:58
问题 This question was migrated from Information Security Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . I am working on a Java project where I must ensure the confidentiality and integrity of users password saved in a plaintext file. To do so, I will write only a hash of the password in the file. More specifically, my intention is to write the hash of the password and a random salt, plus the random salt itself, to avoid the use of rainbow and lookup tables. I

HTML login form : provide username,autofill password

吃可爱长大的小学妹 提交于 2019-12-07 05:56:54
问题 I need a login form where I just need to provide my username,cause it will remember my password and automatically fill in the password field (Ex. Like in gmail auth). How could I achieve that? thanks Luca 回答1: This type of behavior is usually defined by the browser. However there are a few things you can do to improve this behavior. Make sure you use descriptive names for your form <label for="username">Username</label><input type="text" name="username" /> <label for="password">Password<

Best way to store password into sql

 ̄綄美尐妖づ 提交于 2019-12-07 05:53:48
问题 in my current C# windows application password has been stored in plain text which is obviously not good. so i just want to know what is the best way to encrypt the password and stored into SQL Server. I have read that using hash+salt is better. but i feel "EncryptByPassPhrase","DecryptByPassPhrase" new feature in sql 2005 is better to use because you are handling everything from SQL Server itself and i suppose it uses triple DES. can somebody suggest is it good to use it ? 回答1: Do you need to

How to update new API key on current firebase project

丶灬走出姿态 提交于 2019-12-07 05:37:10
问题 For some reason, my firebase project apikey associate with database changed. I can still create another api key, update into the application. But when user try to reset password, the link use the old key and lead to "Your request to reset your password has expired or the link has already been used" (I think I read this problem somewhere and now I found the reason). Is there anyway to update new api key for an existing firebase project? Thank you 回答1: Somehow, my original apiKey was recovered.

How to store Django hashed password without the User object?

南笙酒味 提交于 2019-12-07 05:18:04
问题 I have a Django application that allows web visitors to create there own accounts. Once they create an account with a passwords, they should receive and email containing activation code. When a web-visitor creates a new account, they need to receive an activation email containing a unique key. Obviously, I can do all this using Django's built-in authentication system. I've done it before without any problems. However, in this application, I don't want to pollute my Users table with inactive

Securely storing a password locally that is used for web service

家住魔仙堡 提交于 2019-12-07 04:18:44
问题 I have an application that authenticates against a third party web service by sending a username and password. At the moment I'm typing the password on a winform each time I start the application - but I need it to login automatically. I'd like to store the username/password somewhat more securely than Dim username as String = "username" Dim password as String = "password" I understand that I probably won't stop a determined hacker with access to my source code, but storing them as plaintext

Is it possible to read from the console with scan without echoing the characters?

大城市里の小女人 提交于 2019-12-07 03:54:07
问题 Here is an example function: passwordEntry <- function() { cat("Enter your password: ") pwd <- scan(n=1, what=character(), quiet=TRUE) invisible(pwd) } And to test the function: > passwordEntry() Enter your password: 1: test > Is there a way to suppress what the user types? Or replace it with some other character? I have written a tcl/tk function to prompt the user for a password but it doesn't work on our Linux server. Here is an example from Paul's link below. This does not work either on

Autofill Username and Password in UIWebView

。_饼干妹妹 提交于 2019-12-07 03:38:37
问题 I'm doing a very easy app for me. When I launch this app, it simply bring me to this web page https://social.tre.it/expert. I would like to automatise login so is there a way to autofill username and password, check the "I accept condition" mark and push "login" button? I tried this Autofill Username and Password UIWebView Swift but it doesn't work, I'm not the creator of the page so I don't know exactly how it's structured. Would be cool even if iCloud keychains would fill the forms...but