php SHA256Hex加密

function SHA256Hex($str){
    $re=hash('sha256', $str, true);
    return bin2hex($re);
}

 

posted @ 2017-03-16 11:30  张志健  阅读(15741)  评论(1编辑  收藏  举报