1: $line=gc c:\Scripts\numbers.txt
2: for ($i=0;$i -le 20; $i+=2) {$word+=[char][int]$line.Substring($i,2)}
3: $word
Pretty simple actually. Using the "for" statement to grab every 2 numbers which is the "ASCII Code" equivalent to the letters we want. The first 2 numbers "68" is the "ASCII Code" for "D". The next 2 numbers "82" is the "ASCII Code" for "R", and so on, and so on.
So this:
6882463283678273808479
Turns into this:
DR. SCRIPTO
No comments:
Post a Comment