1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
$text="ijklmnopqr ijkl" $e="" foreach ($line in $text) { $n="" $n+= foreach ($word in ($line.Split())) { $chars = for ($i=0;$i -lt $word.length;$i++) { $x=$word[$i] $x=[char]::ConvertToUtf32("$x",0) [int]$y=$x-8 [char]::ConvertFromUtf32($y) } $chars -join "" } $e+=$n } $e |