Answer the question
In order to leave comments, you need to log in
How to get password hash longer than 31 characters?
Good day.
It is necessary to hash passwords up to 65 characters long using the sha256 algorithm.
As it turned out, the hash function cuts the password to 31 characters, and the resulting hash differs from the original.
How can I increase this limit, or maybe there are other options?
Answer the question
In order to leave comments, you need to log in
Fuck all this nonsense. PHP has great built-in functions.
php.net/manual/en/function.password-hash.php
php.net/manual/en/function.password-verify.php
Are you sure that it is the hash function that cuts off?
Here is the test https://3v4l.org/ZTHTg , nothing is cut off, the hashes are different.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question