if statement

master
puskin94 2015-02-23 21:16:37 +01:00
parent 29590ee594
commit f72a49a1d1
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ handle remainder => sub {
chomp $result;
$operation = "Rc4 Encryption";
} elsif ($type eq "decrypt" || $type eq "de" || $type eq "dec") {
}
if ($type eq "decrypt" || $type eq "de" || $type eq "dec") {
#To decrypt we do the reverse process, we take the plaintext, transform it using decode_base64()
my $decoded = decode_base64($plaintext);
# Then we pass it to the RC4 funcion to be decrypted.