Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[REVCMS] Change Password Hashing
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sledmore" data-source="post: 343143" data-attributes="member: 591"><p>Use password_hash, it's a much better choice.</p><p><a href="http://php.net/manual/en/function.password-hash.php" target="_blank">http://php.net/manual/en/function.password-hash.php</a></p><p></p><p>However, if you want to use that just replace Revs with:</p><p></p><p>[PHP]</p><p>final public function hashed($password) {</p><p></p><p>//let's md5 that salt and the string.</p><p>$salt1 = md5( $params['core']['salt1'] );</p><p>$salt2 = md5( $params['core']['salt2'] );</p><p>$password= md5( $password);</p><p></p><p>//stick them together.</p><p>$password= $salt1 . $salt1 . $salt2 . $password. $salt2 . $salt1;</p><p></p><p>//sha1 then md5 them again.</p><p>$password= sha1( $password);</p><p>$password= md5( $password);</p><p></p><p>return $string;</p><p></p><p>}</p><p>[/PHP]</p><p></p><p>Replace both:</p><p></p><p>[PHP]</p><p>$params['core']['salt1']</p><p>$params['core']['salt2']</p><p>[/PHP]</p><p></p><p>With the salts.</p></blockquote><p></p>
[QUOTE="Sledmore, post: 343143, member: 591"] Use password_hash, it's a much better choice. [URL]http://php.net/manual/en/function.password-hash.php[/URL] However, if you want to use that just replace Revs with: [PHP] final public function hashed($password) { //let's md5 that salt and the string. $salt1 = md5( $params['core']['salt1'] ); $salt2 = md5( $params['core']['salt2'] ); $password= md5( $password); //stick them together. $password= $salt1 . $salt1 . $salt2 . $password. $salt2 . $salt1; //sha1 then md5 them again. $password= sha1( $password); $password= md5( $password); return $string; } [/PHP] Replace both: [PHP] $params['core']['salt1'] $params['core']['salt2'] [/PHP] With the salts. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[REVCMS] Change Password Hashing
Top