开发者

Using SHA-256 for CodeIgniter hashing

开发者 https://www.devze.com 2023-02-11 07:54 出处:网络
CodeIgniter uses MD5 or SHA1 for its hashing: $str = do_hash($str); // SHA1 $str = do_hash($str, 开发者_JAVA技巧\'md5\'); // MD5

CodeIgniter uses MD5 or SHA1 for its hashing:

$str = do_hash($str); // SHA1

$str = do_hash($str, 开发者_JAVA技巧'md5'); // MD5 

But, my project requires SHA-256. How would I resolve this?


Can you not just call php's own hash()?

$str = hash ( "sha256", $str );
0

精彩评论

暂无评论...
验证码 换一张
取 消