Hi, can i ask what is the difference of this two,and which one should i use in my registration form to encrypt password..
orsha2('$password',256)
hash('sha256',$password
Thank you in advance.
| SitePoint Sponsor |




Hi, can i ask what is the difference of this two,and which one should i use in my registration form to encrypt password..
orsha2('$password',256)
hash('sha256',$password
Thank you in advance.
Use SHA-3 alternativelly, as it is much better and different as SHA-2 . Or md5 hash, as usually![]()
cPanel Hosting Europe | Cheap UK Reseller Hosting |
UK / US VPS Hosting
EURO-SPACE - Reliable Hosting Solutions Since 2007





jemz,
To compare a hash value, you must read hash the submitted password then compare that to the hashed value in the database. The whole objective is to NOT store the password.
Regards,
DK
David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
Client and (unpaid) WHB Ambassador
Updated mod_rewrite Tutorial Article (setup, config, test & write
mod_rewrite regex w/sample code) and Code Generator
You'd have sha-3 extension installed in php. Here's the download page with instructions: https://github.com/strawbrary/php-sha3
cPanel Hosting Europe | Cheap UK Reseller Hosting |
UK / US VPS Hosting
EURO-SPACE - Reliable Hosting Solutions Since 2007
Bookmarks