|
|
|
|
|
by CodesInChaos
2812 days ago
|
|
It looks like you're using SHA256(username||password) in this example. Even if it's only an example, why use a homebrew password hashing scheme based on an unsuitable hash function and bad ad-hoc salt handling, instead of a strong standard password hash with built in salt handling? And what code/specification is required to use a secure algorithm, like bcrypt with a random salt? People often copy from such tutorials and will then end up with insecure password storage. |
|