ã·ã°ããã£ã®ããã«ä½¿ãããããã·ã¥ã«SHAãå©ç¨ãããããã¾ãã ç±³å½ååçå½ç«æ¨æºæè¡ç 究æï¼ NIST ï¼ã®æå·ã¢ã«ã´ãªãºã ã®SHA-1ã¯ã2010å¹´ã¾ã§ã«ã¯ãSHA-2ã«ãªãã¬ã¤ã¹ãããããã§ãã PHPã§sha1ãè¨ç®ããå ´åã¯ãsha1()ã使ãã¾ãã sha512()ã¯ããã¾ããããmhashãå©ç¨ãã¾ãã ããã¯ã[2008-03-08-1] ãPHPã§SHA256ãè¨ç®ããæ¹æ³ãã®sha256ã¨ã»ã¼åãã§ããã©ã¡ã¼ã¿ãéãã ããã§ãã <?php echo bin2hex(mhash(MHASH_SHA512, 'hoge hoge')); ?> ç°¡åã§ããã mhashã使ããªãPHPãããããã§ãã hashã使ããå ´åã¯ã <?php $sha512 = hash(sha512, 'hoge hoge'); ?> ã§ãããã·ã¥å¤ï¼ã¡ãã»ã¼ã¸ãã¤ã¸ã§ã¹ãï¼ãçæãããã¨
{{#tags}}- {{label}}
{{/tags}}