Magcro

welcome to our blog

We are Magcro

يتم التشغيل بواسطة Blogger.

Posts

Comments

The Team

Blog Journalist

Connect With Us

Join To Connect With Us

Portfolio

    Posted by: Elm0D Posted date: 12:25 م / comment : 0

    . A simple example of Vigenere encryption made ​​using a module cpan I found in the code:

    # !usr/bin/perl# Vigenere Cipher# Coded By Doddy Hackman in the year 2014use Crypt::Vigenere;head();menu();copyright();# Functionssub head {    print "\n-- == Vigenere Cipher == --\n";}sub copyright {    print "\n\n-- == (C) Doddy Hackman 2014 == --\n";}sub menu {    print qq(================ Menu        ================1 - Encode    =2 - Decode    =3 - Exit      ================);    print "\n[+] Option : ";    chomp( my $op = <stdin> );    if ( $op eq "3" ) {        copyright();        <stdin>;        exit(1);    }    print "\n[+] Enter text : ";    chomp( my $text = <stdin> );    print "\n[+] Enter Key : ";    chomp( my $key = <stdin> );    print "\n[+] Result ...\n\n";    $tool = Crypt::Vigenere->new($key);    if ( $op eq "1" ) {        print $tool->encodeMessage($text);        <stdin>;        menu();    }    elsif ( $op eq "2" ) {        print $tool->decodeMessage($text);        <stdin>;        menu();    }    else {        menu();    }}# The End ?


    That's all. 

    icon allbkg

    Tagged with:

    Next
    رسالة أحدث
    Previous
    رسالة أقدم

    ليست هناك تعليقات:

    Leave a Reply

Comments

The Visitors says