FAQ Database Discussion Community


How to implement remember me, password feature in java swing using checkbox [closed]

java,swing,checkbox,passwords,joptionpane
I have two frames. One is for login_page (where user enters email and password). Here the authentication is done using google API. In the other frame (which has few comboboxes and radio buttons to be selected), but for one radio button I want a JOptionPane to pop up with a...

Hash password on mongoimport into user collection

mongodb,csv,import,passwords
So I am trying to import a csv file into my mongo db. The fields include a username and a password, which is a string. I am able to successfully import the file, but the password is being stored as a string only. But my db stores hashed passwords, and...

How can I see Facebook password, If I logged in?

facebook,post,passwords
If I logged in browser in Facebook so is there any way where I can check my password?

Password_verify bcrypt not working

php,passwords,prepared-statement
Thanks for helping me on this question. I am trying to compare the passwords with php password_verify but it is not working. Is there something wrong with my code? (i get the second message 'INVALID USER OR PASSWORD') Cheers! function login_aut($uname, $pass){ include('_con.php'); include('password.php'); $stmt = $conex->prepare("SELECT id, pass FROM...

Is it possible to set wide space in UITextField

ios,objective-c,passwords,uitextfield
I have a UITextField which basically take 4 digit NSInteger. Now I want to bring the "Pass code" look into it. What I mean is there will be a certain space between each digit. Something like the below picture. I know I can put space at the font & back...

Checking passwords using Javascript in HTML

javascript,html,function,button,passwords
This is some code for a 'Signup' html page; i'm having trouble getting it to check if the two passwords match though. If they don't match, I need a pop up box to display "try again"; if they do math, the page can continue as normal (The sumbit button goes...

password_verify can't verify password_hash with Bcrypt

php,hash,passwords,bcrypt
I am having some problems getting password_verify to confirm my hashed password. This is my login: if (isset($_POST["login-button-front"])) { // IF VALUE IS GIVEN if (isset($_POST["user-password"]) && ($_POST["user-email"])){ $user_email = $_POST["user-email"]; // QUERY DATABASE TO VERIFY LOGIN INFORMATION $query_password = $db->prepare("SELECT password, user_session FROM login WHERE email = :user_email"); $query_password->execute(array(':user_email'...

What stops someone from forging a password reset link?

php,security,passwords,md5
I'm creating a profile system for a website, and I'm at the point where I'm coding the password reset function in PHP. Basically, I'm asking the user for their email address, then setting a random md5 password and emailing this to them and it comes in a link formatted like...

Extract password during python script execution

python,unix,passwords
Password = subprocess.call(["openssl", "enc", "-d", "-aes-256-cbc", "-a", "-in", "/home/xxx/xxx/pvcsadminPWwin.enc", "-pass", "pass:password"]) During the execution of this Python script, I want the password to be extracted. And when the script executes the password gets printed by default on the screen. But when I give print Password it prints 0....

Store passwords of external database securely

php,mysql,passwords
I am creating a PHP application which can be installed on user's server but the administration is hosted on my server. I need to store the password, username, db_name, host and port of database of the user. I think I should store in database (MySQL), but I don't know how...

Password encryption algorithm

security,web,passwords
I want to develop a web application where users can login inserting their email and password (chosen when register). I want to know which would be the best password hashing algorithm. I have read that bcrypt is a good option, but what algorithm do sites like facebook use?

PHP Prepared statement login

php,mysql,login,passwords,sql-injection
I'm in the process of adding password hashing and SQL injection defenses into my Login system. Currently, I've ran into an error. <?php session_start(); //start the session for user profile page define('DB_HOST','localhost'); define('DB_NAME','test'); //name of database define('DB_USER','root'); //mysql user define('DB_PASSWORD',''); //mysql password $con = new PDO('mysql:host=localhost;dbname=test','root',''); function SignIn($con){ $user =...

Hiding param of struts.xml values in Struts 2

java,url,struts2,passwords,url-parameters
Is there any way to hide the param values in struts.xml as they are visible on the URL when I pass them from one action to another? <action name="BackToManagerIndex" class="Action.LoginAction" method="ManagerList"> <result type="redirectAction"> <param name="actionName">login</param> <param name="namespace">../Manager</param> <param name="User_Id">%{User_Id} </param> <param name="Password">%{Password}</param> </result> Here when ever the BackToManagerIndex action is...

Random password generate in shell script with one special character

bash,shell,unix,random,passwords
I have following code </dev/urandom tr -dc '[email protected]#$%&_+=' | head -c 16 which is randomly generating password perfectly. I want two changes: It should only contain 1 special symbols that i have listed there It should choose random length of the password I tried with length = $(($RANDOM%8+9)) then putting...

Recursive random password generator

java,recursion,random,passwords,int
I am attempting to write a recursive password generating program in java, but instead of returning one randomly generated password, the console spits out every combination of passwords and just keeps going. *Also, I'm required to have at least one capital letter in the password, which is why I am...

SSH asking for password at login and not passphrase

ssh,passwords,key,passphrase
I recently used this guide https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04 When I created the public key I opted to use a passphrase. When I connect via ssh from my local machine it is only asking me for a "password" (as it normally would). I assumed that it would now ask for a "passphrase" and...

Keep config file secure using github and Elastic Beanstalk?

amazon-web-services,github,passwords,config,elastic-beanstalk
I am using github (public) to keep track of my web app and about to deploy it to Elastic Beanstalk. Is there a good way to keep my config file secure which has RDS username/password? I have to add the file to git in order to push it to Elastic...

PHP - Read data in .txt and output $Data?

php,hyperlink,passwords,username
Hello so I have a text file that as this data.txt data e.g. username I need this to out put into a $tag File.php if ($username == "$data") { echo "User Found" } else{ echo "User not found";} Any help on this would really be nice :)?...

Passing a password to a web service and storing it

c#,postgresql,security,passwords
What is the proper way of passing a password to a web service via restful api (when a user is registering or just logging in)? How should I store it? From what I was thought, I should only store hashes, for example MD5. But from what I can read in...

Rails 4 - Allow password change only if current password is correct

ruby-on-rails,authentication,model,passwords,bcrypt-ruby
In my app, users can edit their profile information. On the edit profile form, the user can make changes to all fields (name, title, and more). On this same form are three fields: current_password, password, and password_confirmation. I am using bcrypt's has_secure_password feature for password authentication. I am NOT using...

How to compare array values in a bash script?

arrays,linux,string,bash,passwords
I am trying to generate a random password with certain requirements. Minimum 8 characters Atleast 1 lowercase letter atleast 1 uppercase letter atleast 1 number must have 1 special character Atm I am trying to compare a random passphrase, that I generate, with the number array so that I can...

Tool to unlock users and reset passwords

batch-file,passwords,unlock
I came across a batch script from Spiceworks to unlock users and passwords. Instead of giving the option to enter the username to unlock or reset the password, I'd like to pre-define a list of users or usernames to unlock and reset the password. Take for instance the following. Please...

Most used password in different language

javascript,passwords,change-password
I need to check the strength of password when user change his password. For that I'm using pwstregth.js. The issue is that I have user who speak french and german and some very stupid password like "motdepasse" ("password" in french) is rated good by zxcvbn because this word is not...

Setting password in Java swing (JPasswordField) in Asian languages (Korean, Japanese, Chinese) does not work

java,swing,unicode,passwords,jpasswordfield
I have a problem with inconsistence behavior of JPasswordField component trying to use Asian composite characters. My code is: final JCheckBox visiblePassword = new JCheckBox(); // show/hide password checkbox JPasswordField passwordField = new JPasswordField(); passwordField.setPreferredSize(new Dimension(200, 25)); final char echoChar = passwordField.getEchoChar(); visiblePassword.addActionListener(new ActionListener() // show/hide password { public void...

CAPS LOCK IS ON JQUERY

javascript,jquery,html,passwords,capslock
$("input[type='password']").keypress(function(e) { var $warn = $(this).next(".capsWarn"); // handle the warning mssg var kc = e.which; //get keycode var isUp = (kc >= 65 && kc <= 90) ? true : false; // uppercase var isLow = (kc >= 97 && kc <= 122) ? true : false; // lowercase //...

NoReverseMatch at /resetpassword/ in Django

django,django-templates,passwords,reset
I´m getting this error during Reset Password. I have a login page whith the link to reset forgotten password, it shows correctly the templates, but if I write the mail to send the reset link, it shows this error: localhost/resesetpassword NoReverseMatch at /resetpassword/ Reverse for 'password_reset_confirm' with arguments '()' and...

Toggle password input using a checkbox (not working due to security risks)

javascript,jquery,html,input,passwords
I'm trying to get rid of the "put your password in again to confirm it" field in my sign up form. The design pattern I've seen to get around this is a checkbox which will reveal the password to the user - so they can verify it. However, implementing it...

Change password function not working - hash wrong

cakephp,authentication,hash,passwords
Ok, I've been hitting my head against this wall all evening. Can someone explain to my why this returns false (user model): public function changePassword($user_id, $currentPassword, $newPassword, $repeatPassword){ //Check repeat /* if($newPassword != $repeatPassword) return false; */ //Check old password $this->id = $user_id; $current = $this->field('password'); $passwordHasher = new BlowfishPasswordHasher();...

Checking for repeated characters in password using Java

java,validation,passwords,character
I'm a student of CIS taking a Java class (hoping to become a programmer). Anyhow, I have an assignment to create a program that checks a password for validity. If the password is not valid, it is to print a message. If the password is valid, the user is to...

PHP login not working (comparing plain submitted password with encrypted one) [duplicate]

php,mysqli,login,passwords
This question already has an answer here: Secure hash and salt for PHP passwords 13 answers I'm trying to make a login with prepared statement but kept failing so I let every step have an echo when failed. I get a "Password verify: (0)" so i'm guessing the problem...

Can't generate password reset token in MVC 5 project?

c#,passwords,asp.net-mvc-5,usermanager
I'm having a weird issue. At the moment I'm trying to make a "forgot password" method, so users can get a reset mail when they forget their password. The strange thing is I can't use various methods in the usermanager, which normally work in all other projects. If I create...

How to avoid storing password in Python code

python,passwords,base64
I need to use a password to sign in a service I need to do some stuff in Python, but I don't want to store the password in the code. I did some research and found the base64 encode. This seems good, but it requires the password to be stored...

ASP:Login : Password not autocomplete after enter Username

c#,asp.net,login,autocomplete,passwords
I used ASP:Login to take a Login form for my page. Now I have 2 problem and I try to find a solution but ... @[email protected] Now, I enter to login page. Type user, type password, then Enter Problem 1 : Enter key not focus to Login button. It's mean,...

Saving username and password using UISwitch in Swift

swift,passwords,nsuserdefaults,username,uiswitch
Ive searched a lot of threads and this is my last resort because Ive seen this question asked different ways but not exactly for swift and for Username and password saving. I want my UISwitch when turned on to save my username and password info. I've been trying all day...

Password validation

c#,regex,passwords
Criteria Password length >=8 and <=15 One digit(0-9), One alphabet(A-Z or a-z), One special character (@#$*!) I tried this ((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{8,15}) but this checks for both one lower case and upper case , but I need either one....

Active Directory how to simulate a user login in and changin his password

windows,powershell,login,active-directory,passwords
Short story : Knowing the temporary password of a user, how to simulate a user login and change it's password without actually open a session when the option user must change password at next logon is enabled ? Long story: I'm in a helpdesk and have access to an app...

Client side password hash versus plain text

security,hash,passwords,client,password-hash
I'm putting together an android client (and possibly in the future iOS, web portal, etc) and php mysql server. Server side I am currently using the PHPass library to hash and salt the incoming passwords. Should I make the client send plain text passwords over HTTPS/SSL or should the client...

Prepopulate Username and Password in Login screen

login,passwords,username,credentials,ui-design
I have designed a standard login screen in ASP.NET like below: As usual when operator selects “Remember me”, we expect system to not ask operator for credentials anymore and go directly to default (home) page. My business team saw something on internet and they believe that when “Remember me” has...

Keep JQuery Vars for another function (Global vars?)

javascript,jquery,arrays,passwords
I'm trying to make a password check system. I've decided I also want to check if it is a commonly used password. For this, I'm loading an external txt file into an array. However, my password check function does not seem to be able to read this array. jQuery(document).ready(function() {...

Crypt function outputting two different values depending on PHP version

php,hash,passwords,crypt
Using the password "testtest" and the hash "KFtIFW1vulG5nUH3a0Mv" with the following code results in different hashes depending on the PHP version (as shown in the image below): $salt = "KFtIFW1vulG5nUH3a0Mv"; $password = "testtest"; $key = '$2a$07$'; $key = $key.$salt."$"; echo crypt($password, $key); Output 1 (PHP v.5.3.0 - 5.4.41, 5.5.21 -...

iOS - Password Encryption in Swift

php,ios,swift,encryption,passwords
I need to encrypt a password in Swift and send it to my web server to store in the database. Any best practices? I've seen AESCrypt.encrypt(userPassword, password: API_AUTH_PASSWORD) but I'm not really sure if this is sufficient (salted, etc.). Also, on the server itself, how would I go about comparing...

questions about password_hash() [closed]

php,security,hash,passwords,bcrypt
I just have a little question about the password_hash() function, does it create a ramdom salt for me? I mean I don't have to specify something like this: 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM) Because I suppose that the function creates a random and different salt for EACH of the password? Another...

c++ password handling security practices?

c++,encryption,cryptography,passwords
I am creating a c++ class that handles a username and password. I was trying to do some research on some rudimentary, but effective practices for me to handle this information, in c++, so it can't be easily found by someone, for example, scanning memory and variables to determine the...

Random password generator same string

c,random,passwords
This is my first C program and I wanted to make a random password, but every time I run the program, it generates the same string. (always generates "pkDHTxmMR1...") This is not going to actually be used so the security of rand() doesn't really matter to me. Why would it...

plain Password is logged via my python script

python,linux,passwords
I have a sample python script: sample.py. The script takes the argument as the user name and password to connect to some remote server. When I run the script sample.py --username --password , the password is being logged in linux messages files. I understand this is a linux behavior, but...

HttpWebRequest Authentication not working

c#,authentication,web,passwords,httpwebrequest
Alright, so I'm writing a program to access a RESTful service, but I first must provide authentication to the website. I have valid credentials and my entire code looks like this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Net; using System.IO; namespace AccessAPI { class Program...

What will happen if they changed PASSWORD_DEFAULT in PHP Password library?

php,hash,passwords,php-password-hash
Consider this line of code by using PHP: $password = password_hash($password, PASSWORD_DEFAULT); What will happen if they changed the default password hashing algorithm? I mean I will be having hashed password inside the database. Then, from my own understanding, it will be impossible to check the password because the hashing...

Regular expression to match at least two special characters in any order [duplicate]

javascript,regex,validation,passwords
This question already has an answer here: Regular Expression for password validation 3 answers I have to do jQuery form validation for password. The password should contain at least two special characters in any order. I have tried with Regular Expression for password validation but it does not address...

When checking password, it only cares about the first 8 characters

php,mysql,passwords,crypt,password-confirmation
I have a sign-up form that creates a profile and an "Edit Profile" page that allows the user to change information as long as they also enter their password. The problem is that the "Edit Profile" page only makes sure that the first 8 characters of the password match. Or,...

Is this a bad practice for storing passwords in PHP?

php,hash,passwords,md5,salt
I'm using the crypt function in PHP to hash passwords, along with salt obviously. But I'm generating my salt by calling the md5 function over the date function. And every time the user logs in the salt gets regenerated. Is any of this bad in any way? I am still...

Hide password in python using getpass.getpass()

python,osx,python-2.7,passwords,sha
When I type >>> passwd = getpass.getpass() Into the python 2.7 shell, in IDLE, I get the result: Warning (from warnings module): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/getpass.py", line 55 passwd = fallback_getpass(prompt, stream) GetPassWarning: Can not control echo on the terminal. Warning: Password input may be echoed. Password: Then when I type the...

Write script to create multiple users with pre-defined passwords

linux,bash,shell,terminal,passwords
So I would like to make a script that create users from users.txt running useradd -m -s /bin/false users_in_the_users.txt and fill the password from passwords.txt twice (to confirm the passwords) This is the script #!/bin/bash # Assign file descriptors to users and passwords files exec 3< users.txt exec 4< passwords.txt...

How do you read an argument into an array

arrays,perl,command-line,passwords,arguments
I am not sure how to send the contents of an argument to an array. Say $ARGV[1] is a csv file. I want to read the contents of that file into an array in a perl script. This is what I have tried #!/usr/bin/perl use strict; use warnings; @array =...

How to set UserID and Password in Progress Developer Studio 11.5

passwords,progress-4gl,openedge,userid
I am fairly new to progress. I am currently using Progress Developer Studio 11.5. Does any one know how to set UserID and Password. Any documentation would be greatly helpful.

Why are the password fields filled on my Wordpress User Edit Page?

wordpress,passwords
In Wordpress, when I go to edit a user from the admin side (user-edit.php), the password fields are already filled in. This causes the users's password to be reset if I edit any other field and click update user. The password fields are filled with a whole string of random...

How can I access Windows SBS 2008 without the admin domain password or boot disk?

passwords,admin,password-recovery,small-business-server
I have an old Dell Poweredge T100 from my fathers old business running Windows Small Business server 2008, however I do not know the admin password nor do I have the boot/windows install disk. Is there any possible way to access the server or reset the admin password? Bare in...

django-passwords is not working

django,passwords
I am trying to use the django app - https://github.com/dstufft/django-passwords, to set up password strength checking for django passwords. Here are things i have done till now: Installed django-passwords with pip install django-passwords Added 'passwords' to INSTALLED_APPS Created a form: from passwords.fields import PasswordField class ResetForm(forms.Form): password = PasswordField(label="New password")...

Starting Shiny app after password input

r,passwords,shiny
I know that in Shiny Server Pro there is a function of password control. The question is that Shiny has function passwordInput(), which is like textInput() Has anybody thought about how to do the following: 1) Launching the application only after correct password input 2) Launching the part of application...

How to return to the main JFrame window from a JOptionPane used as a prompt?

java,passwords
An amateur Java programmer here. Here is the code I'm still working on. My plan is to use a JOptionPane to show if the password entered is correct or not and the attempts left. My problem is that the attempts left doesn't change and the loop goes on and on...

Use of sftp with shell_exec php

php,passwords,sftp,shell-exec
I'm trying to get a file from a remote host but it asks me the password and the script is supposed to run without me to type the password. How can I send the password? I have to use shell_exec. <?php $command="sftp [email protected] adress"; shell_exec($command); ?> ...

How risky is it to use email for custom sign in?

security,passwords,password-protection
For a web application, where we need to store and manage users (SSO or openauth or what not is off the table), where we manage important business data, how risky is it to use an email address + password as the sign in? For the last 15 years or so,...

Android Studio how do I check email address and password before starting a new activity

java,android,email,android-activity,passwords
Making a prototype app that requires an email address & password I am quite new to java, I have tried the following method but the new activity does not open. If anyone has any helpful hints/tips it would be appreciated :) public class LogonScreen extends ActionBarActivity { private Button SignInButton;...

Hashing and password_verify

php,hash,login,passwords,verification
I'm working with my little PHP project and I'm trying to implement hashing on registration and I need to verify my hashed password when user want to log in. I tried a lot but I don't really get how I could use password_verify function in my code. In my registration.php...

How to Clear Bios Password [closed]

passwords,bios
I have an "HP Elitebook 2540p" laptop. from when I buy that laptop, "BIOS" have a password. I already tried every way to clear that such as remove motherboard (bios) battery for 72 hours, use PC CMOS Cleaner 2.0 (have erred),.... I don't know how can remove that password and...

Android how to handle sensitive data in memory

android,security,passwords
Please I have the following scenario: the app uses a password to access to some remote webservice over HTTPS; to do so, the app asks the user the password, does NOT store it on the device (and use it in a safe manner to access the webservice). My concern is...

My password root caused disappearance in Mysql database

mysql,phpmyadmin,passwords,root
I set a password for the user root manually in the phpmyadmin, and suddenly the mysql database disappeared from the list. When I use the control console, the root user can connect without a password, but the command line show database doesn't display the mysql database.

Password hash and verification don't match

c#,asp.net,hash,cryptography,passwords
I'm writing custom forms authentication for ASP.NET MVC 5 (no, I don't want to use ASP.NET Identity). I'm trying to hash my passwords using a randomly-generated salt and then hashing salt+password using SHA512. Here are the methods I've written: private static User SetPassword(User newUser, string password) { var rand =...

Fatal error: Call to undefined function password_verify() (with godaddy)

php,function,passwords,version,password-hash
I am having this error after I uploaded into the web server and realized that it might be the php version godaddy provides since I heard lots of these problems before. Also, I ready the other post having this problem saying password_verify is a built in function as php5.5 and...

Perl brute force attack

perl,while-loop,passwords,brute-force,hackage
I am having a lot of trouble trying to create a brute force script. The password I need to crack is 1 to 4 characters long and all lowercase letters. I think I have figured out the code to generate all the possible combinations but I am not sure how...

Verify username and a salted password

java,mysql,security,jdbc,passwords
I have a application that usues JDBC Jquery and MYSQL that lists a table with quotes and the user can add quotes. i have a loggin page where i check the input of username and compare it with something that exits in the database. like this and it works fine...

Cannot set password with DirectoryEntry.Invoke when user is created in AD using ASP.NET C#

c#,asp.net,active-directory,passwords,directoryentry
A Web Application is creating a user from a Personnel Management Page which in turn adds the user to the Active Directory. Here is code to do this: DirectoryEntry Folder = new DirectoryEntry("LDAP://XXXX.com/CN=ContainerName, DC=XXXX, DC=com", admin, adminPwd, AuthenticationTypes.None); if (Folder.SchemaEntry.Name == "container") { DirectoryEntry user = Folder.Children.Add("CN=" + txtFirstname.Text +...

Brute force attack test on password for file

perl,passwords,combinations,system-calls,brute-force
I'm trying to create a brute force that will work on a specific files password. I'm not sure how to get this code to work. This is what I have so far. This code produces the correct possible combinations for the password but I am not sure how to implement...

Python - Dictionary isn't being registered in my code

python,database,passwords,username,accounts
I'm very new to Python and was testing myself on making a login and signup account database type thing (very basic) it's all text based. Some reason, when I run the code and signup, it needs the accounts dictionary inside of signup(), but when I successfully create the account, it...

authentication ruby valid_password error

ruby-on-rails,login,devise,passwords
I'm new to ROR. I tried for simple login with email and password. I can't authenticate the password. It's repeated question, and my error is not yet cleared with old questions. My code is user = User.find_by_email(params[:email]) user.valid_password?(params[:password]) if @user = User.find_by_email(params[:user][:email]).valid_password?(params[:user][:password]) #render :json=> user.as_json(:status=>'success', :Message=>'Sucessfully Registered', :username=>user.username ), :status=>201...

Check for charset size with AppleScript

security,passwords,applescript
I'm trying to make a script that based on charset size and guesses per second, makes an estimate on how long it would take to crack a password that the user inputs in a box. So far I can only get it to check for numbers, by trying to add...

Bug when reading password with confirmation and retries in a loop

c#,validation,passwords
EDIT: The problem I am facing is that I enter an incorrect password to confirm previous password and it works since it is the first try. The max is 3 tries. During 2nd and 3rd try even if password is correct it will say invalid password. I do not want...

Correct regex for a password-type field

regex,passwords
Working on password-field. The regex expression for a field container letters (lowercase, uppercase), digits and some special characters will look like this: ^([a-z,A-Z,0-9,#,$,%,&,_,]{8,20})*$ Tell me please, how this should be modified if I want every pass phrase to have at least one lowercase, one uppercase and one digit? For example,...

Create a .txt with Password [closed]

c#,file,passwords
I write a program that create a file .txt in my Desktop. Now I want the file created has a password to read. How to create a .txt with a password?...

PHP Compare a crypted password from db with an inserted password from a form

php,hash,cryptography,passwords,md5
I've a db with crypted password. When a user logs in, i make this: $result = mysqli_fetch_assoc(mysqli_query($conn,$query)); $cryptedPass = $result['password']; $pass = $_POST['password']; if(strcmp($cryptedPass,md5($pass))==0) echo "yeah!"; It works, but I would like to know if this the right manner, or if there is something of safer!...

How to get wordpress password using hash and salt key?

wordpress,passwords,salt
I forgot my wordpress admin password but i am able to get into my DB and have the hashed password and also i have salt key from my wp-config.php file. Does anyone know how can i get my password back from above details. I tried doing forgot password thing but...

How can I use multiple regex expressions with different validation messages

asp.net-mvc,validation,asp.net-mvc-5,passwords,fluentvalidation
Requirements I want to check password policies by using multiple regex expressions. For each policy violation I want to display a specific validation message. Examples: You need to use at least 2 numbers You need to use at least one upper and one lower case letter You need to use...

Using a batch file to write passwords from a browser to a text file [closed]

windows,batch-file,text,cmd,passwords
I am looking to collect passwords from a web browser using a batch file and some other tools and writing them to a .txt file. Any suggestions for tools/code?

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

ios,swift,passwords
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?

Rails: How can I securely store and reuse passwords

ruby-on-rails,encryption,ssh,passwords
So I have an application that can automate execution of remote tasks on other servers. It does this by connecting to the server via SSH and executing the commands through that connection. The problem I have is how to handle the usernames/passwords for these servers. In most cases I cannot...

create dictionary class for storing Passwords

c#,.net,passwords
I am trying to create a dictionary in C# in order to store passwords. Could you please help me. I am new to this and Stuck. I am trying to create public class PasswordPool { static void Passwords() { ICollection<KeyValuePair<String, String>> openWith = new Dictionary<String, String>(); openWith.Add(new KeyValuePair<String, String>("User1", "Password"));...

The storage system passwords

python,encryption,passwords,storage
At work we are doing monitoring system servers. We have passwords that give access to the servers. Kept it all should in the database. We will be held on the basis of encrypted passwords, and must connect to servers using the decrypted passwords. The problem - where to store the...

Secure way to store pending user's password in Meteor

meteor,passwords
For my Meteor application, I would like to have the following signup process: User registers username, email and password. (He's not able to log in yet.) Confirmation email sent [Accounts.sendEnrollmentEmail] User confirms email [Accounts.onEnrollmentLink] User is created. [Accounts.createUser] (He's able to log in.) In order to achieve this, I feel...

Passwords and encryption

asp.net,encryption,passwords
Many site can ask you to make an account in order to get more services etc. Most of the time a password is asked also. I understand there is a need to make a password of a certain length, say at least 6 chars or longer. What I don't understand...

Why is srand(time()) a bad seed?

php,security,passwords
Using srand(time()) to generate a token for a password reset (or for a CSRF token) is bad because the token can be predictable. I read these: Is using microtime() to generate password-reset tokens bad practice REST Web Service authentication token implementation But I don't understand how the token can be...

Change Password not working Cakephp 3.0.3

cakephp,authentication,passwords,cakephp-3.0
i am using cakephp 3.0.3, i am writing action to change user password, for that i want to compare current password (entered by user) with existing one in database. but it give me different hash every time, Here is my setter for password in User Entity, protected function _setPassword($password) {...

How to programmatically trigger password reset email in django 1.7.6?

python,django,passwords,reset,programmatically-created
I've encountered a problem where I had to load more than 200 new users into my django app and right away send them a password reset email. This had to happen only once, done only by me and run quietly on backend. Surfing the internet brought me only to one...

Empty argument - form for

ruby-on-rails,passwords
I want to implement a reset password functionality so I have followed this railscast, I receive the mail with the link to redirect to an edit password page but I get an error here. View <h1>Reset Password</h1> <%= form_for @user, :url => password_reset_path(params[:id]) do |f| %> <% if @user.errors.any? %>...

how to cakephp2 project transplanted to cakephp3?

passwords,cakephp-3.0,transplant
I want to cakephp2 project transplanted to cakephp3 problem. I must retain the user's information. How to make them have the same way to generate password? Here's how I generate passwords by cakephp2. App::uses('AuthComponent', 'Controller/Component'); .... public function beforeSave($options = array()) { $this->data['User']['password'] = AuthComponent::password( $this->data['User']['password'] ); return true; }...

How to generate an md5 hash with a plaintext string and a known salt [duplicate]

c#,passwords,md5,salt
This question already has an answer here: MD5 hash with salt for keeping password in DB in C# 4 answers I have been going crazy trying to figure this out. Is there a simple way in C# to take a string like "password123" and a salt "vfs5%S]m(_*Y+Tk" and generate...

How to prevent reuse of password hash by another user [closed]

php,hash,passwords,password-hash
I need to prevent reuse of password hash by another user, for example if a user can create his hash (knowing the password of curse) if he gained access to the database and replace someone else's hash with his, he will be able to log in as that user I...

ORA-00988: missing or invalid password(s)

oracle,passwords,createuser
I'm trying to change an oracle password: alter user FOO identified by 'BAR'; and I'm getting the following back: Error starting at line 120 in command: alter user FOO identified by 'BAR' Error report: SQL Error: ORA-00988: missing or invalid password(s) 00988. 00000 - "missing or invalid password(s)" What's going...

Escape password in mysqldump command

mysql,passwords,mysqldump
I am using this; mysqldump -u userabc -pabc123 dbname | gzip > /var/backups/archives/mysql/dbname_$(date +\%d-\%m-\%Y_\%T).sql.gz This works but if the password contains a ^ for example it fails, how can I escape this character and still have mysqldump work with the -p flag; mysqldump -u userabc -pabc^123 dbname | gzip >...

Programmatically disable password confirmation pop-up in Firefox

html,firefox,passwords
I have a simple password change form as below. It's part of a larger page, but this snippet serves to illustrate. There's no user identifier in this form - no login name, ID or other reference. It's not required because that information is stored as part of the session data...

pattern password javascript

javascript,regex,design-patterns,passwords
I'm working on a pattern for a password with the following requirements: Min character = 6 Max character = 64 Min 1 lowercase character Min 1 uppercase character Min 1 number Min 1 special characters I am using this regex: var passReg = /^(?=^[ -~]{6,64}$)(?=.*([a-z][A-Z]))(?=.*[0-9])(.*[ -/|:[email protected]|\[-`|{-~]).+$/; However, it does not...

Generate the password hash using php

php,encryption,passwords,sha1,silverstripe
i have a DB of users and their password in encrypted form. I want to let the users log in to the site using the username and password. For authentication i need to know what type of encryption is their so that i can match the entered password with the...