Answer the question
In order to leave comments, you need to log in
How to remake the script so that the decryption is displayed on the screen?
How to remake the script so that the decryption is displayed on the screen:
#!/usr/bin/perl -l
$text = "2I7VjH)Q3RkPK*Sm3R!aY8!1P:5T6YL-`N4U5M,;xB#v1D%24U";
$hahaha = <>;
chop($hahaha);
@hahaha = split //,$hahaha;
for $i (0..length($text)-2){
($a,$b) = (substr($text,$i,1),substr($text,$i+1,1));
if (ord($a) == (ord($b) ^ 97)){
next if $a eq shift @hahaha;
print "NOOO\n";
exit;
}
}
print "Congrats )\n";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question