passwords

Codeigniter strange encryption of password

余生长醉 提交于 2019-12-10 12:24:08
问题 I'm new to Codeigniter and trying to make a user registration. And I've met strange thing. At first I'll tell what exactly I'm doing with my password value: $password = stripslashes($password); $password = htmlspecialchars($password); $password = md5($password); $password = strrev($password); And then I'm saving it to the DB: $data = array( 'email' => $email, 'reg_type' => $reg_type, 'password' => $password ); $this->CI->db->insert('user', $data); And no matter what password I enter, It's

Security using AES with salted password as key

别等时光非礼了梦想. 提交于 2019-12-10 12:09:12
问题 I understand how a salted hash of a password works, but I am assuming I would also need to store the salt, username, KEY, and encryptedpassword. I think overall I just need to understand how I would implement this for instance how to store it and then how to regenerate the password. Also if someone could explain why using this salted value is better, couldn't a person do a dictionary attack with the salt in front of each word? Thanks, 回答1: It is unclear what you are trying to do: verify a

Change Password in hashed function in laravel 5.6

与世无争的帅哥 提交于 2019-12-10 12:07:09
问题 I want to change my password which is been hashed while saving. How can i change the password? 'password' => Hash::make($data->password). My Controller $request->validate([ 'oldpass' => 'required', 'password' => 'required|alphaNum|min:6', 'password_confirmation' => 'required|same:newpass', ]); $id = $request->id; $users = Auth::user()->whereId($id)->get(); foreach ($users as $user) { if ($oldpass == $user->password) { $user->update([ 'password' => Hash::make($request->newpass) ]); return view

Secure Options for storing Openssl password on a server (Linux, Python, CherryPy)

假装没事ソ 提交于 2019-12-10 11:56:28
问题 I've implemented a HTTP server (CherryPy and Python) that receives an encrypted file from a client (Android). I'm using OpenSSL to decrypt the uploaded file. Currently I'm using openssl -enc -pass file:password.txt -in encryptedfile -out decryptedfile to perform to decryption on the server side. As you can see the password used by openssl is stored in a plain text file (password.txt). Is there a more secure way to store this OpenSSL password? Thanks. 回答1: Pass it through a higher FD, and use

Remove Delay for android textPassword

╄→尐↘猪︶ㄣ 提交于 2019-12-10 11:47:12
问题 While enterting password inside EditText view, Characters are being shown and after some delay it is shown as DOT, i want to remove this delay. It should be displayed directly as DOT. How do i do this on Android? 回答1: This is a user setting within Android, I do not believe that it is controllable from code. It is designed to aid the user in entering the correct password. --Edit-- Further to the question askers comment, the setting can be found in: Settings > Security > Make passwords visible

iPhone SQLite Password Field Encryption

筅森魡賤 提交于 2019-12-10 11:39:48
问题 Good Afternoon Guys and Girls, Hopefully this will be a quick and easy question. I am building an App that requires the user to input their login details for an online service that it links to. Multiple login details can be added and saved as the user may have several accounts that they would like to switch between. These details will be stored in an SQLite database and will contain their passwords. Now the questions are: 1: Should these passwords be encrypted in the database? My instinct

Match passwords after using CRYPT_BLOWFISH

泪湿孤枕 提交于 2019-12-10 11:38:09
问题 I have successfully created my passwords and am inserting them into the database using CRYPT_BLOWFISH. However I do no know how to match the crypted passwords in the database to the passwords the user is entering to login. Any help is greatly appreciated thanks. To generate the password from the users input I use: REGISTER.PHP //If there are no errors or returned_records and the form is submitted let's submit the info and register the user else if(!$error_msg && !$returned_record && $_POST[

let user change their own password?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 10:54:27
问题 I am just starting to learn php and sql so please go easy on me, i know i'm going to be wrong in certain places. I am trying to allow a user to login and be able to change their password. I have made an attempt of a script which i believe should work, but i guess i'm doing something wrong as it will just link to the php function page and not change the password at all. Here's my script: HTML form: <form method="POST" action="includes/changepassword.php"> <p><input type="password" name=

how to securely store a password for a 3rd party service in django?

只谈情不闲聊 提交于 2019-12-10 10:50:24
问题 I'm running a web service on Django. Users register to my system and provide me login details (username and password) for a 3rd party web service). My purpose is to store this details in the best and safest way. Unfortunately my service needs this data for some offline scripts that query the 3rd party service, so I cannot store the login/password encrypted with user password (and use it to a key do decipher them. I read lots of articles on stackoverflow, but most of them (like: What is the

Require Different Characters in a Security Code

落爺英雄遲暮 提交于 2019-12-10 10:43:29
问题 Example security code: a35sfj9ksdf How can I ask a user for several characters (e.g. first, forth and ninth) of their security code and then check these? The main difficulty comes in how do I store the seucurity code in an encrypted form - if I were to store each character individually, then the encryption would be incredibly easy to break. 回答1: A possibility that was described neither here nor at How to store and verify digits chosen at random from a PIN/Password is this: Create a random