[TYPO3-english] Creating a salted MD5 password fails

2014-04-08 Thread Marc Klein
Hi, I'm trying to generate a salted MD5 password in a eID script and doing something wrong :-(. When I call the getHashedPassword() Method 3 times in a row I get 3 different results and none of them matches the hash in the DB. protected function saltPassword ( $password ) { $sa

Re: [TYPO3-english] Creating a salted MD5 password fails

2014-04-08 Thread Richard Davies
Hi Marc, Try: $objSalt= tx_saltedpasswords_salts_factory::getSaltingInstance($non_salted); $validPasswd= $objSalt->checkPassword($salted,$non_salted); Richard On 9 April 2014 03:57, Marc Klein wrote: > > Hi, > > I'm trying to generate a salted MD5 password in a eID script

Re: [TYPO3-english] Creating a salted MD5 password fails

2014-04-09 Thread Steffen Gebert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Marc, > When I call the getHashedPassword() Method 3 times in a row I get > 3 different results and none of them matches the hash in the DB. Nope, that's correct. That's exactly the idea of salting a password. The salt is that part of uncertainty