ã³ã³ã·ã¹ãã³ãããã·ã¥ã使ãéã®ä»®æ³ãã¼ãæ°ã®æ±ºãæ¹
コンシステントハッシュ法ã¯ä¾¿å©ãªã¢ã«ã´ãªãºã ã ãã注æç¹ãããã
ä»®æ³ãã¼ãæ°ãããã¤ã«ãããã¨ããåé¡ã§ãä»®æ³ãã¼ãæ°ãå¤ããã°å¤ãã»ã©ãã¡ã¤ã«ã¯åä¸ã«åæ£ããã¨ããããã§ã¯ãªãã¨ããäºå®ã ã
å¤æ°ã®ãã£ãã·ã¥ãªãã¸ã§ã¯ããããã¤ãã®ãã£ãã·ã¥ã³ã³ããã«ã³ã³ã·ã¹ãã³ãããã·ã¥æ³ã§åæ£ãããã¨ãããããã£ãã·ã¥ãªãã¸ã§ã¯ãã®åæ°ã 10000 åããã£ãã·ã¥ã³ã³ããã®åæ°ã 10 ã¨ããã¨ããã£ãã·ã¥ã³ã³ãããããã®å¹³åãã£ãã·ã¥ãªãã¸ã§ã¯ãä¿ææ°ã¯ 1000 åã ã
æããã¦ãããããã·ã¥ã¢ã«ã´ãªãºã ã§ã¯ãã©ã®ãããã®ä»®æ³ãã¼ãæ°ã§ãã©ã®ãããåä¸ã«åæ£ããã®ã ããï¼
MD5 ã§ã®ãã¹ã
ä¸è¨ã°ã©ãã¯ã横軸ãä»®æ³ãã¼ãæ°ã縦軸ã1ãã£ãã·ã¥ã³ã³ãããããã®å¹³åãã£ãã·ã¥ãªãã¸ã§ã¯ãä¿ææ°ã«å¯¾ããæ¨æºåå·®ã®å²åã ã
å¾ã£ã¦ã縦軸㯠0 ã«è¿ããã°è¿ãã»ã©åä¸ã«åæ£ãããã¨ã表ãã
ããã·ã¥ã¢ã«ã´ãªãºã 㯠MD5ãããä»®æ³ãã¼ãæ°ã§ã¯ 30 åã®è©¦è¡ããã¦ããã
è¦ã¦ã®éããã°ã©ãã¯æ»ããã§ã¯ãªãããã®ã°ã©ãã§ã¯ä»®æ³ãã¼ãæ°ã 86 ããããæããã©ã¤ããå°ãªãã
160ç¨åº¦ã®ä»®æ³ãã¼ãæ°ãé¸ãã§ãã80å°ååããåããåºãããã®ã ï¼
SHA-1 ã§ã®ãã¹ã
ãã¦ã次㫠SHA-1 ã§è¦ã¦ã¿ãããããã·ã¥ã¢ã«ã´ãªãºã 以å¤ã®æ¡ä»¶ã¯ä¸è¨ MD5 ã§ã®ãã¹ãã¨åæ§ã
MD5 ããã¯è¥å¹²æ»ããã§ããããã«è¦ããããããã§ãå
¨ä½çã«ã¯æ³¢æã£ã¦è¦ããã
ã¾ã¨ã
ä»åã¯ããã·ã¥é¢æ°ã«æ´æ°ã渡ãã¦åæ£ãããããã½ããã¦ã§ã¢ã«ãã£ã¦ããã·ã¥é¢æ°ã«æ¸¡ãå¤ã¯å¤ããã ããã
ãã®ãããã³ã³ã·ã¹ãã³ãããã·ã¥æ³ã§ä»®æ³ãã¼ãæ°ã決ããéã¯é©å½ã«æ±ºããã®ã§ã¯ãªããäºåã«è¨ç®ãã¦æé©ãªå¤ã決å®ãããã¨ã