| Authen :: Passphrase :: Phass. Paspass ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ´Â ¾ÏÈ£¹®. |
Áö±Ý ´Ù¿î·Îµå |
Authen :: Passphrase :: Phass. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~zefram/
Authen :: Passphrase :: Phass. ű×
Authen :: Passphrase :: Phass. ¼³¸í
Phass Pass AlgorithmÀ» »ç¿ëÇÏ´Â ¾ÏÈ£¹®. authen :: passphrase :: phass´Â phass algorithmÀ» »ç¿ëÇÏ¿© ¾ÏÈ£¸¦ »ç¿ëÇÏ´Â perl ¸ðµâÀÔ´Ï´Ù. Synopsis »ç¿ë authen :: passphrase :: phaps; $ ppr = authen :: passphrase :: phass-> new (ºñ¿ë => 10, salt => "naclnaCl", hash_base64 => "obrxtm / .eiiyn02xueaqs /"); $ ppr = authen :: passphrase :: phass-> new (ºñ¿ë => 10, salt_random => 1, passphrase => "¾ÏÈ£);); $ ppr = authen :: passphrase :: phaps-> from_crypt ( '$ p $ 8naclnaclobrxtm / .eiiyn02xueaqs /'); $ ppr = authen :: passphrase :: phaps-> from_rfc2307 ( '{crypt} $ p $ 8naclnaclobrxtm / .eiiyn02xueaqs /'); $ ºñ¿ë = $ ppr-> ºñ¿ë; $ COST_BASE64 = $ PPR-> COST_BASE64; $ ºñ¿ë = $ ppr-> nrounds_log2; $ ppr-> nrounds_log2_base64; $ salt = $ ppr-> ¼Ò±Ý; $ hash = $ ppr-> ÇؽÃ; $ hash_base64 = $ ppr-> hash_base64; if ($ ppr-> match ($ passphrase)) {... $ passwd = $ ppr-> as_crypt; $ userpassword = $ ppr-> as_rfc2307;ÀÌ Å¬·¡½ºÀÇ °´Ã¼´Â ÅÂ¾ç ±¤ µðÀÚÀ̳ʰ¡ ¹ß¸í ÇÑ Phass Phass ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© http://www.openwall.com/phpass/¿¡¼ ¼³¸íÇÑ ¾ÏÈ£¹®À» ĸ½¶ÈÇÕ´Ï´Ù. ÀÌ°ÍÀº authen :: passphraseÀÇ ÇÏÀ§ Ŭ·¡½º À̸çÀÌ ¹®¼´Â ¸®´õ°¡ ÇØ´ç Ŭ·¡½ºÀÇ ¼³¸í¼¿¡ Àͼ÷ÇÏ´Ù°í °¡Á¤ÇÕ´Ï´Ù. Phass AlgorithmÀº MD5 ¸Þ½ÃÁö ´ÙÀÌÁ¦½ºÆ® ¾Ë°í¸®ÁòÀ» ±â¹ÝÀ¸·ÎÇÕ´Ï´Ù. ±âÁ¸ 64 ÀÚ¸®·Î ±¸¼ºµÇµµ·Ï Åë»óÀûÀ¸·Î Á¦ÇѵǴ 8 ¹ÙÀÌÆ® ¼Ò±ÝÀÌ ÀÖ½À´Ï´Ù. ¶ÇÇÑ ÇؽÌÀÇ ºñ¿ëÀ» Á¦¾îÇÏ´Â ºñ¿ë ¸Å°³ º¯¼ö°¡ ÀÖ½À´Ï´Ù. ù ¹ø° ¼Ò±Ý°ú ¾ÏÈ£´Â MD5¿¡ ÀÇÇØ ¿¬°áµÇ°í Çؽõ˴ϴÙ. ±×·± ´ÙÀ½ 2 ^ ºñ¿ë ½Ã°£, ÀÌÀü ´Ü°èÀÇ Çؽô ¾ÏÈ£¹®°ú ¿¬°áµÇ¾î MD5¿¡ ÀÇÇØ ÇؽõǾú½À´Ï´Ù. ¾ÏÈ£¹® Çؽô ÃÖÁ¾ ¹Ýº¹ÀÇ ouptutÀÔ´Ï´Ù. Passphrase Çؽô Á¢µÎ»ç "$ p $"¸¦ »ç¿ëÇÏ¿© ¾ÏÈ£ Çü½ÄÀ» »ç¿ëÇÏ¿© ASCII·Î Ç¥½ÃµË´Ï´Ù. Çü½Ä Á¢µÎ»ç ÈÄ Ã¹ ¹ø° ¹®ÀÚ´Â ºñ¿ë ¸Å°³ º¯¼ö¸¦ Á¦°øÇÏ´Â ±âº» 64 ÀÚ¸®ÀÔ´Ï´Ù. ´ÙÀ½ 8ÀÚ´Â ¼Ò±ÝÀÔ´Ï´Ù. ¼Ò±Ý¿¡´Â Çؽø¦ÁÖ´Â 22 °³ÀǺ£À̽º 64 ÀÚ¸®°¡ µÚ µû¸¥´Ù. º£À̽º 64 ÀÚ¸®´Â ".", "/", "0", "9", "a"to "z", "a"to "z"(ASCII ¼ø¼·Î). ¿ä±¸ »çÇ× : ¡¤ Perl.
Authen :: Passphrase :: Phass. °ü·Ã ¼ÒÇÁÆ®¿þ¾î