ï¼2012/12/01追è¨ï¼ æã£åãæ©ãPHPã§æå·åããããªããCodeBook.phpã使ãã®ããå§ãã ï¼è¿½è¨çµããï¼ AESã¨ã¯ï¼ æå·åæ¹å¼ã®1ã¤ããããã¯é·ã¯128bitsã®ã¿ãéµé·ã¯128ã»192ã»256bitsã®3ã¤ããé¸æã§ããã AESã®å ã¨ãªãæå·åæ¹å¼ã¯Rijndaelã ããRijndaelã§ã¯ãããã¯é·ã«ã¤ãã¦ã128ã»192ã»256bitsããé¸æã§ããã¨ããéããããã PHPã§ã®ä½¿ç¨ä¾ï¼CBCã®å ´åï¼ $key = 'ç§å¯ã®åè¨è'; $text = 'æå·åããã¡ãã»ã¼ã¸'; srand(); $size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($size, MCRYPT_RAND); $encrypted = mcrypt_en
{{#tags}}- {{label}}
{{/tags}}