GD :: SecurityImage.

GD :: SecurityImage´Â º¸¾È À̹ÌÁö (CAPTCHA) »ý¼º±âÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

GD :: SecurityImage. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Burak G
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~burak/Text-Template-Simple-0.50/lib/Text/Template/Simple.pm

GD :: SecurityImage. ű×


GD :: SecurityImage. ¼³¸í

GD :: SecurityImage´Â º¸¾È À̹ÌÁö (CAPTCHA) »ý¼º±âÀÔ´Ï´Ù. GD :: SecurityImage´Â º¸¾È À̹ÌÁö (CAPTCHA) GeneratorÀÔ´Ï´Ù. GD :: SecurityImage¸¦ »ç¿ëÇÕ´Ï´Ù. # Á¤»óÀûÀÎ À̹ÌÁö »ý¼º My $ image = GD :: SecurityImage-> New (width => 80, height => 30, lines => 10, gd_font => giant); $ image-> ¹«ÀÛÀ§ ($ your_random_str); $ image-> create (normal => 'rect'); MY ($ image_data, $ mime_type, $ random_number) = $ image-> out; ¶Ç´Â # ¿ÜºÎ TTF ±Û²Ã »ç¿ë My $ image = gd :: security-> new (width => 100, height => 40, lines => 10) , font => "/ bsolute/path/to/your.ttf", scramble => 1); $ image-> ¹«ÀÛÀ§ ($ your_random_str); $ image-> create (ttf => default '); $ À̹ÌÁö -> ÀÔÀÚ; My ($ image_data, $ mime_type, $ random_number) = $ image-> out; ¶Ç´Â ´ç½ÅÀº (´ëºÎºÐÀÇ °ø°³ ¸Þ¼ÒµåÀÇ ´ëºÎºÐÀÌ ¹­ÀÏ ¼ö ÀÖÀ½) my ($ À̹ÌÁö, $ type, $ rnd) = GD :: SecurityImage- > NEW-> Random-> Create-> Particle-> Out; ±âº» ¼³Á¤À¸·Î º¸¾È À̹ÌÁö¸¦ ¸¸µì´Ï´Ù. ±×·¯³ª ±×°ÍÀº À¯¿ëÇÏÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ¸ðµâÀÌ ÇÊ¿äÇÑ °æ¿ì °¡Á® ¿À·Á¾ßÇÕ´Ï´Ù. ´ÙÀ½À» °¡Á®¿Í¾ßÇÕ´Ï´Ù. GD :: SecurityImage°¡ ÇÊ¿äÇÕ´Ï´Ù. GD :: SecurityImage-> °¡Á® ¿À±â; ¸ðµâÀº À̹ÌÁö :: MagickÀ» Áö¿øÇÏÁö¸¸ ±âº» ÀÎÅÍÆäÀ̽º´Â GD ¸ðµâÀ» »ç¿ëÇÕ´Ï´Ù. À̹ÌÁö :: Magick Áö¿øÀ» »ç¿ëÇÏ·Á¸é use_magick ¿É¼ÇÀ» »ç¿ëÇÏ¿© ¸ðµâÀ» È£ÃâÇؾßÇÕ´Ï´Ù. gd :: securityimage use_magick => 1; ¸ðµâÀÌ ÇÊ¿äÇÑ °æ¿ì,À̸¦ °¡Á®¿Í¾ßÇÕ´Ï´Ù : GD :: SecurityImage°¡ ÇÊ¿äÇÕ´Ï´Ù. GD :: SecurityImage-> Import (use_magick => 1); ¸ðµâÀº ½ÇÁ¦·Î ³»º¸³¾ ¼ö ¾ø½À´Ï´Ù. ±×·¯³ª °¡Á® ¿À±â´Â ÇÊ¿äÇÑ ¼­ºê ¸ðµâÀ»·ÎµåÇÕ´Ï´Ù. °¡Á® ¿À±â°¡ ÇÊ¿äÇÏÁö ¾ÊÀ¸¸é Çʼö ¸ðµâÀ̷εåµÇÁö ¾Ê°í ¾Æ¸¶µµ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. () "º¸¾È À̹ÌÁö"°¡ ÀαⰡ ÀÖ½À´Ï´Ù. ´ëºÎºÐÀÇ ÀÎÅÍ³Ý ¼ÒÇÁÆ®¿þ¾î´Â µî·Ï È­¸é¿¡¼­ ´ÙÀ½À» »ç¿ëÇÏ¿© ·Îº¿ ÇÁ·Î±×·¥À» Â÷´ÜÇÕ´Ï´Ù (°¡Â¥ ¸â¹ö °èÁ¤ÀÇ ÅæÀ» µî·Ï ÇÒ ¼ö ÀÖÀ½). º¸¾È À̹ÌÁö´Â ±âº»ÀûÀ¸·Î ±×·¡ÇÈ CAPTCHAS (¿ÏÀüÈ÷ ÀÚµ¿È­ µÈ °øÁß Æ©¸µ Å×½ºÆ®°¡ ÄÄÇ»ÅÍ¿Í Àΰ£À» ¾Ë¸®±âÀ§ÇÑ ¿ÏÀüÈ÷ ÀÚµ¿È­ µÈ Æ©¸µ Å×ÀÌ¼Ç Å×½ºÆ®)ÀÔ´Ï´Ù. ÀÌ ¸ðµâÀº ÀÌ·¯ÇÑ À̹ÌÁö¸¦ ¸¸µå´Â ±âº» ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù. ÃÖÁ¾ Ãâ·ÂÀº ½ÇÁ¦ ±×·¡ÇÈ µ¥ÀÌÅÍ, ±×·¡ÇÈÀÇ MIME À¯Çü°ú »ý¼º µÈ ÀÓÀÇ ¹®ÀÚ¿­ÀÔ´Ï´Ù. ÀÌ ¸ðµâ¿¡´Â À̹ÌÁöÀÇ ¹è°æ (¶Ç´Â Àü°æ)À» ¸¸µå´Â µ¥ »ç¿ëµÇ´Â "½ºÅ¸ÀÏ"ÀÌ ÀÖ½À´Ï´Ù. authen :: captcha »ç¿ëÀÚ´Â GD :: SecurityImage :: AC¿¡¼­ Authen :: captcha¿¡¼­ GD ·ÎÀÇ ¸¶À̱׷¹À̼ÇÀ»À§ÇÑ GD :: SecurityImage :: AC¸¦ ÂüÁ¶ÇϽʽÿÀ. :: SecurityImage.This ¸ðµâÀº ´ÜÁö À̹ÌÁö »ý¼º±â ÀÏ»ÓÀÔ´Ï´Ù. º¸¾È ¹®ÀÚ Ã³¸®±â°¡ ¾Æ´Õ´Ï´Ù. »ý¼º µÈ ±×·¡ÇÈÀÇ À¯È¿¼º °Ë»ç´Â ÇÁ·Î±×·¡¹Ö ¸À¿¡ ³²¾Æ ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


GD :: SecurityImage. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

¼¿·¯

AxylÀº À¥ »çÀÌÆ®ÀÇ °³¹ßÀ»À§ÇÑ PHP ¶óÀ̺귯¸® / ÇÁ·¹ÀÓ ¿öÅ©ÀÔ´Ï´Ù. ...

142

´Ù¿î·Îµå