2011-02-09 暗号化はMD5じゃなく、SHA256を使う 技術-PHP PHPではmhash関数を使う function sha256($str) { $hash = mhash(MHASH_SHA256, $str); return $hash; }