Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题可能是它会在创建哈希时对服务器内存过度充电,并且在加载它时可能会增加两次。
那么您认为创建一个专门用于此的函数还是只使用默认的 SHA256 更好?
我假设这里的上下文是散列密码。为什么要重新实现已经存在的东西?如果您拥有 PHP 5.5,则可以利用新的密码哈希库,这大大简化了整个过程。
如果您运行的是旧版本的 PHP,我会使用久经考验的框架,例如phpass。
In the following example the flash in my HTML would not show after moving it's parent element in DOM. I use appendChild on enclosing div o
appendChild
div