Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Last active December 8, 2015 02:57
Show Gist options
  • Save matthewjberger/e85595f7561a95e4a908 to your computer and use it in GitHub Desktop.
Save matthewjberger/e85595f7561a95e4a908 to your computer and use it in GitHub Desktop.
aamsay atinlay
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