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