passwords

Which error message is better when users entered a wrong password?

十年热恋 提交于 2020-01-14 07:25:09
问题 Is there any differences between the following two error messages from security point of view when users entered a wrong password? Wrong username or password. Wrong password. For example, when you enter a wrong password on the Gmail.com, it will tell you "The username or password you entered is incorrect". Is there any considerations for security reasons? I think the error message: "The password you entered is incorrect" is more clear to users, And, What's more, it's very easy to check

How to retrieve username and password from windows vault using java? [duplicate]

南楼画角 提交于 2020-01-14 04:30:07
问题 This question already has answers here : How do I store and retrieve credentials from the Windows Vault credential manager? (3 answers) Closed 10 months ago . I would like to retrieve username and password programmatically stored in windows vault. Is there a Java API which can be used to retrieve the username and password securely from the Windows Vault? 回答1: Have you seen How do I store and retrieve credentials from the Windows Vault credential manager? I think you can refer this for an

How to set a password for a folder programmatically in android

喜欢而已 提交于 2020-01-14 02:45:26
问题 Is there a way to set a password for a folder programmatically? 回答1: The best solution I can think of is to do it like you do in java: An example in this link describes as follows: import java.io.*; import java.nio.channels.FileChannel; import java.nio.channels.FileLock; public class FileLockTest { public static void main(String[] args) throws Exception { RandomAccessFile file = null; FileLock fileLock = null; try { file = new RandomAccessFile("FileToBeLocked", "rw"); FileChannel fileChannel

Password input field change from text to password on focus/type?

本秂侑毒 提交于 2020-01-13 18:16:06
问题 I have a sign up form where the titles of the inputs are in the text box, and when you click on the box, the text disappears, but on the password i want the preview text to remain as "password" and not "••••••••". BUT when the user clicks on the text box should clear out the text, and their entered text should apear as "•••••••". This is the code for the buttons: <form method="post" action="register_process.php"> <input type="text" class="button" value="USERNAME" onclick="this.value='';this

C# and SQL Server: Passwords. Where to do what?

徘徊边缘 提交于 2020-01-13 13:10:34
问题 Ok, I have an application written in C#. We have data in an SQL Server. Among that data we have user accounts, which will give access to the application. I've read around, and I know that you should salt and hash and possibly hash a bunch of times, etc. But, where do I do what? What do I send to and from the SQL Server? Exactly what do I store in the database? Do I hash it in SQL? (possibly a hash function there, like in mysql?) Do I hash and do the fancy stuff in my code? Do I send the hash

C# and SQL Server: Passwords. Where to do what?

不想你离开。 提交于 2020-01-13 13:09:14
问题 Ok, I have an application written in C#. We have data in an SQL Server. Among that data we have user accounts, which will give access to the application. I've read around, and I know that you should salt and hash and possibly hash a bunch of times, etc. But, where do I do what? What do I send to and from the SQL Server? Exactly what do I store in the database? Do I hash it in SQL? (possibly a hash function there, like in mysql?) Do I hash and do the fancy stuff in my code? Do I send the hash

gitosis asking for password

岁酱吖の 提交于 2020-01-13 09:36:09
问题 I have setup a gitosis server following instructions from here. It works fine for the initial user but I have recently added a new user. Here are the steps I took. Created an rsa keypair using ssh-keygen with filename johndoe. Then copied it to the keydir in gitosis admin repo. Edited the gitosis config file and added user johndoe to the list of members Commited the changes using git commit -a -m "what i did" Pushed the changes to the server After that I tried to check out with the new

Dealing with passwords in NAnt build script

房东的猫 提交于 2020-01-13 08:57:12
问题 Is there a way to prompt the user for input during a NAnt build? I want to execute a command that takes a password, but I don't want to put the password into the build script. 回答1: I'm using a script for now, but I'd love to hear if there's a prebuilt method already available. Many thanks to sundar for the ForegroundColor trick. I'm not sure if it matters whether you use Project.Log or go direct to Console.WriteLine(), any NAnt ninjas want to educate me? Here's the script and a sample target

OpenSSL - Password vs Salt Purpose

℡╲_俬逩灬. 提交于 2020-01-13 08:33:08
问题 When encrypting a file with OpenSSL, it is possible to use -pass pass:mySillyPassword, where mySillyPassword is the password used in encryption. In addition, it is possible to use a salt, where -salt -s (hex string) is used to specify the salt. Why would someone want to use a password instead of the salt or in conjunction with a salt? Also, I understand just using the -salt command will cause OpenSSL to generate a salt. How is this better than a user-defined salt? If OpenSSL randomly

Capistrano 3 deploy asking for SSH passphrase but cannot type it in

家住魔仙堡 提交于 2020-01-13 08:15:40
问题 I'm trying to use Capistrano 3 to deploy a Rails 4 application. #config valid only for Capistrano 3.1 lock '3.1.0' set :application, 'testapp' set :scm, :git set :repo_url, 'git@bitbucket.org:sergiotapia/testapp.git' set :user, "deploy" # The user on the VPS server. set :password, "hunter2$$" set :use_sudo, false set :deploy_to, "/home/deploy/www/testapp" set :deploy_via, :remote_cache set :pty, true set :format, :pretty set :keep_releases, 1 set :rails_env, "production" set :migrate_target,