{"published":"2005-11-18 00:00:01","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.r-sky.jp%2Fentry%2F20051118%2Fp2\" title=\" SHA-256 - \u8b83\u5bb9\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/rsky/","image_url":null,"blog_title":"\u8b83\u5bb9\u65e5\u8a18","author_name":"rsky","url":"https://blog.r-sky.jp/entry/20051118/p2","title":" SHA-256","blog_url":"https://blog.r-sky.jp/","height":"190","type":"rich","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","description":"Pure PHP \u3067 SHA-256 \u3092\u5b9f\u88c5\u3057\u305f\u4eba\u3082\u3044\u308b\u3051\u3069\u3001\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u7684\u306b\u82e6\u3057\u304b\u3063\u305f\u306e\u3067 mhash \u3092\u4f7f\u3063\u3066\u9069\u5f53\u306b\u4f5c\u3063\u3066\u307f\u305f\u3002256 \u3092 224/384/512 \u306b\u5909\u3048\u3066\u3082 OK. function sha256($str, $raw_output = false) { $hash = mhash(MHASH_SHA256, $str); return ($raw_output) ? $hash : bin2hex($hash); } function sha256_file($filename, $raw_output = false) { return sha256\u2026","categories":["Mac","PHP"],"width":"100%","version":"1.0"}