Created
February 16, 2018 19:30
-
-
Save Demonslay335/304784c22e7d77a8b935970458ca3f36 to your computer and use it in GitHub Desktop.
Rot Buster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit: https://twitter.com/Lee_Holmes/status/964576204425580544 | |
param([string]$a) | |
0..25 | % { [PSCustomObject] @{ | |
Offset = $_ | |
Value = & { | |
param($v, $o) -join ($v.ToCharArray() | % { | |
[char](((([int][char]$_) - ([int][char]'a') + $o) % 26) + ([int][char]'a')) | |
}) | |
} $a $_ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment