| crypt :: blowfash_pp. CRYPT :: BLOWFARES_PP - Blowfish ¾ÏÈ£È ¾Ë°í¸®ÁòÀº Perl¿¡¼ ¼øÀüÈ÷ ±¸ÇöµÇ¾ú½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
crypt :: blowfash_pp. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Matthew Byng-Maddick
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~mattbm/Crypt-Blowfish_PP-1.12/Blowfish_PP.pm
crypt :: blowfash_pp. ű×
crypt :: blowfash_pp. ¼³¸í
Crypt :: Blowfash_PP - Blowfish ¾ÏÈ£È ¾Ë°í¸®ÁòÀº Perl¿¡¼ ¼øÀüÈ÷ ±¸ÇöµÇ¾ú½À´Ï´Ù. crypt :: blowfash_pp - perl.synopsususe crypt :: blowfish_pp; $ blowfish_pp ($ Å°); $ ciphertextBlock = $ blowfish-> ¾ÏÈ£È ($ plaintextblock); $ plaintextblock = $ blackish -> Decorypt ($ CipherTextBlock); Crypt :: Blowfish_PP ¸ðµâÀº »ç¿ëÀÚ°¡ PerlÀÇ Blowfish ¾ÏÈ£È ¾Ë°í¸®ÁòÀ» »ç¿ëÇϵµ·Ï Á¦°øÇÕ´Ï´Ù. ±¸ÇöÀº ¿ÏÀüÈ÷ °´Ã¼ ÁöÇâÀûÀ̸ç, º¹¾î¸¦ ºü¸£°Ô ¸¸µå´Â °Í¿¡ »ó´çÇÑ ¸¹Àº ¸Æ¶ôÀÌÀÖ´Â °Íó·³ Å°´Â 64¿¡¼ 448 ºñÆ® (8 ¹× 56 ¹ÙÀÌÆ®) »çÀÌÀÇ À§Ä¡¿¡ ÀÖÀ¸¸ç Æ÷Àå µÈ ¹®ÀÚ¿·Î Àü´ÞµÇ¾î¾ßÇÕ´Ï´Ù. º¯È¯ ÀÚü´Â 16 ¶ó¿îµå FEISTEL ³×Æ®¿öÅ©À̸ç 64 ºñÆ® ºí·Ï¿¡¼ ÀÛµ¿ÇÕ´Ï´Ù. CRYPT :: BLOWFARES_PP ¸ðµâ¿¡ ´ëÇÑ 64 ºñÆ® ºí·Ï. object ¸Þ¼Òµå : New (Key) The New () ¸Þ¼µå´Â Àü´Þ µÈ Å°·Î Blowfish °´Ã¼¸¦ ÃʱâÈÇÕ´Ï´Ù. ÀÌ°ÍÀº ¾Ë°í¸®Áò¿¡ »ç¿ëµÇ´Â 18 °³ÀÇ P-BOX ¹× 1024 S-BOX¸¦ ÃʱâÈÇϱ⠶§¹®¿¡ ºí·Î ÇÇ»ó ¾ÏÈ£È ¶Ç´Â ¾ÏÈ£ Çص¶ÀÇ ´À¸° ºÎºÐÀÔ´Ï´Ù. Å°°¡ À¯È¿ÇÑ Length.Encrypt (ºí·Ï) encrypt () ¸Þ¼µå°¡ ÃʱâÈ µÈ Blowfish °´Ã¼¸¦ »ç¿ëÇÏ¿© 8 ¹ÙÀÌÆ®ÀÇ ¹®ÀÚ¿ÀÇ 8 ¹ÙÀÌÆ®¸¦ ¾ÏÈ£ÈÇÏ¿© 8 ¹ÙÀÌÆ®ÀÇ µ¥ÀÌÅ͸¦ ¾ÏÈ£ÈÇÕ´Ï´Ù. ¾ÏÈ£È µÈ block.decrypt (ºí·Ï) decrypt () ¸Þ¼µå¸¦ »ç¿ëÇÏ¿© ÃʱâÈ µÈ blowfish °´Ã¼¸¦ »ç¿ëÇÏ¿© 8 ¹ÙÀÌÆ®ÀÇ ¹®ÀÚ¿ÀÇ µ¥ÀÌÅ͸¦ Çص¶ÇÕ´Ï´Ù. Çص¶ µÈ ºí·ÏÀ» ¹ÝȯÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
crypt :: blowfash_pp. °ü·Ã ¼ÒÇÁÆ®¿þ¾î