Skip to content

Instantly share code, notes, and snippets.

@Demonslay335
Created February 16, 2018 19:30
Show Gist options
  • Save Demonslay335/304784c22e7d77a8b935970458ca3f36 to your computer and use it in GitHub Desktop.
Save Demonslay335/304784c22e7d77a8b935970458ca3f36 to your computer and use it in GitHub Desktop.
Rot Buster
# 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