Frage

The problem maybe that it would overcharge the server Memory while Creating Hashes and maybe twice while loading it.

So did you think is better to make a function that specializes in this or just use the default SHA256 instead?

War es hilfreich?

Lösung

I assume the context here is hashing passwords. Why reimplement what already exists? If you have PHP 5.5, you can take advantage of the new password hashing library, which drastically simplifies the whole process.

If you're running an older version of PHP, I'd use a tried and tested framework, such as phpass.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top