I am trying to create my own login system and I was wondering what is the best way to hash a password?
Should I just use the function from PHP SQL hash('SHA512' password)
or should I use JavaScript for it?
I have already made the system to hash via PHP SQL with SHA512
, but if it's more secure with JavaScript I wouldn't mind shifting.
So what I am asking for is, what is the pros and cons for hashing with JavaScript and for PHP.
And could be cool if you could tell me too what it means to SALT
, haven't really understood what it exactly means, and why I should do it.
And yes, I know there are lot's of good login system I can just copy/paste, but this is mostly for understanding how it all works and getting some experience.