Here's a small PERL script that would help you in encoding and decoding the input string:
C0de:
#! /usr/bin/perl
use MIME::Base64;
print "Enter the Choice\n";
print "1. Encode to Base 64\n";
print "2. Decode from Base64\n";print "Enter the choice::";
my $choice=<STDIN>
if($choice==1)
{ print "Please enter a string that is to be encoded:"; my $str=
if($choice==2)
{ print "Please enter a Base 64 string that is to be decoded:"; my $str=
Hope this helps!!!
No comments:
Post a Comment