[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
<#
I saw this email signature and it got me thinking - there are always better ways of doing things in powershell and I would like a signature like this too.
So starting from scratch I ended up with something similar that I liked.
Put your email address or text that you would like to obfuscate in the following code
For example I have used 'PowerShell Rules'
#>
-join([int[]][char[]]'PowerShell Rules'|%{[char]($_
-3)})
<#
and it will return something like this
MltboPebiiOribp
Notice how I used -3.
To reverse it you need to use +3 like this.
#>
-join([int[]][char[]]'MltboPebiiOribp'|%{[char]($_
+3)})
<#
Basically you can use nearly anything from +13 to -13. Some combinations wont work due unprintable characters.
Here are some other strings with character patterns I like.
One is
gobbly gook making it look confusing and the other one has
curly brackets and pipe symbols making it totally weird code.
Both are the same initial string (an email address) but with a different character offset.
#>
-join([int[]][char[]]'GocknBfqockp0eqo'|%{[char]($_-2)})
-join([int[]][char[]]'T|px{Os~|px}=r~|'|%{[char]($_-15)})
<#
Just put your email address into this script to see if you can pull off a string that strikes your fancy.
#>
$x=-20
do{
"$x $(-join([int[]][char[]]'Email@domain.com'|%{[char]($_+$x)}))"
$x++
}until ($x -eq 20)
<message edited by TomRiddle on Sunday, June 19, 2011 10:07 PM>