Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top