Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Last active Dec 8, 2015
Embed
What would you like to do?
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