passwords

how can i mask input by using batch file without extra file

ⅰ亾dé卋堺 提交于 2019-12-19 10:52:10
问题 i want batch file to mask the input with * without extra file For example http://pastebin.com/2c4EtG4g this code is working successfully but it is very slow when i write the letter can any one give my code is fast and without an extra file ? or edit the code in the link to be fast ?? 回答1: Does this meet your "no extra file" criterion? It's a batch file that creates and deletes a tool to get the input, and so it is completely portable, and works in 64 bit machines too. Herbert Kleebauer wrote

SQL Lite android app login

不想你离开。 提交于 2019-12-19 08:54:38
问题 I am working on a game at the moment and all I want is my login screen to be able to check that the username and password I have already stored in my database is correct and when it is correct and the log in button is clicked to open a new activity. I have my database built and also a login I just need to figure out how to check against my database not just the text in the fields. I already have a pre-added login stored in the database: Username: test Password: 1234 Thanks in advance p.s I am

How to get password of active directory by ldap in php?

自闭症网瘾萝莉.ら 提交于 2019-12-19 07:38:23
问题 I have problem about password in Active Directory. I want to get password from "username" of user I tried function "ldap_search", but I do not find correctly attribute for password I tried as: password, userpassword, userPassword, unicodePwd, unicodepwd, but they are not correct. I look forward to helping of everyone Thanks for all :D trankinhly 回答1: Passwords in Active Directory are not retrievable. Nor are they in most directories. (eDirectory has a password policy, that if you bind as the

cakephp password validation

為{幸葍}努か 提交于 2019-12-19 06:41:54
问题 var $validate = array( 'password' => array( 'passwordlength' => array('rule' => array('between', 8, 50),'message' => 'Enter 8-50 chars'), 'passwordequal' => array('checkpasswords','message' => 'Passwords dont match') ) ); function checkpasswords() { return strcmp($this->data['Airline']['password'],$this->data['Airline']['confirm password']); } This code is not working and always gives the error message even if they match. Also when i do a edit i get the followoing error as there is no

cakephp password validation

吃可爱长大的小学妹 提交于 2019-12-19 06:41:05
问题 var $validate = array( 'password' => array( 'passwordlength' => array('rule' => array('between', 8, 50),'message' => 'Enter 8-50 chars'), 'passwordequal' => array('checkpasswords','message' => 'Passwords dont match') ) ); function checkpasswords() { return strcmp($this->data['Airline']['password'],$this->data['Airline']['confirm password']); } This code is not working and always gives the error message even if they match. Also when i do a edit i get the followoing error as there is no

Correct way to store and retrieve SHA-256 hashed and salted passwords

醉酒当歌 提交于 2019-12-19 05:06:59
问题 This is my first attempt in securely storing passwords and I would like to make sure that everything is done correctly. I was advised to use SHA-256 hashing alongside salt. Assuming user submitted their password thorough form, we get the password via $password = $_POST["password"]; What is correct way to salt $password and use SHA-256 hashing on it, so it can than be stored in a password field "password CHAR(64)" in a database? Once done and stored how would I than compare value stored in a

Android: user login and stays in session until logout (which needs approval)

主宰稳场 提交于 2019-12-19 04:56:02
问题 I would like to make sure that when user log in it will stay in session no matter what happens (crashed, shut down/power down/reboot, leaving the app) at same time the user info data will be sending with all the activities in the app to the webserver. for example at the start up of the app, user login '9999' it goes to the main activity that have 5 diff. activities. user 9999 will send one activity (i.e. gps location) it will send that info to the webserver as user 9999 gps 123.234 123.123. I

Secure password generation and storage

久未见 提交于 2019-12-19 04:12:26
问题 I'm building a login system and I want to be sure I'm writing the write code to generate and store passwords in the db. $options['passwd'] is the string selected as a password by the user. This is my code to generate a hash: public function createPasswd($options) { $hash_seed = 'm9238asdasdasdad31d2131231231230132k32ka¡2da12sm2382329'; $password = $options['passwd']; $date = new DateTime(); $timestamp = $date->getTimestamp(); $rand_number = rand($timestamp,$timestamp + pow

Password Hashing in 2013

别说谁变了你拦得住时间么 提交于 2019-12-19 04:07:07
问题 What is the "best" solution these today? This seems a good option: https://defuse.ca/php-pbkdf2.htm But then how about upgrading to PHP5.5 and using this? http://php.net/manual/en/function.hash-pbkdf2.php Curious as to why the PHP site states: Caution The PBKDF2 method can be used for hashing passwords for storage (it is NIST approved for that use). However, it should be noted that CRYPT_BLOWFISH is better suited for password storage and should be used instead via crypt(). For PHP versions

Password stretching - a way to mitigate CPU flood

China☆狼群 提交于 2019-12-19 03:42:17
问题 I'm now using password stretching for all user account passwords throughout all my websites. In the db I store an iteration count and randomly assigned salt along with the final hash. I'm using SHA512 as the hash algorithm. I'm using C# in .Net 3.5 and 4.0 (dual framework library) for this. For accounts that only ever get randomly assigned passwords (things like web service API users etc) I keep the iteration count down to a range such that a password check takes no more than 1 second or so.