09.11.2017, 14:09
@Question: Dont return string, but instead just change the variable. Arrays are passed by reference by default.
I dont see the point of writing an own hash function.
First, it includes randomness, so for the same input it may output different results. This will definitely cause problems sooner or later.
Second, it is just character shifting, easy to analyze, and - even worse - symmetric. The "hash" can be converted back to the plain password. And the whole point of hashing is to prevent that. In terms of security this isnt any better than storing the plain passwords.
I dont see the point of writing an own hash function.
First, it includes randomness, so for the same input it may output different results. This will definitely cause problems sooner or later.
Second, it is just character shifting, easy to analyze, and - even worse - symmetric. The "hash" can be converted back to the plain password. And the whole point of hashing is to prevent that. In terms of security this isnt any better than storing the plain passwords.