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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top