Skip to content

Instantly share code, notes, and snippets.

@TheFrostlixen
Last active August 29, 2015 14:26
Show Gist options
  • Save TheFrostlixen/467ff495a1ec26b29541 to your computer and use it in GitHub Desktop.
Save TheFrostlixen/467ff495a1ec26b29541 to your computer and use it in GitHub Desktop.
aamsay aatinlay aistgay anoay aithubgay
function SamL ($a) {$a = $a -replace "[^\w\s]",""; $b = $a.split(" ") | %{"a" + $_.substring(1) + $_[0].ToString().tolower() + "ay" }; [string]::Join(" ", $b) | Out-String }
function DecryptSamL ($a) {$b = $a.split(" ") | %{$_[$_.Length-3] + $_.Substring(1, $_.Length-4) }; [string]::Join(" ", $b) | Out-String }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment