문제

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