June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,13 +1,3 @@
|
|||
Function ROT13($String)
|
||||
{
|
||||
$Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
||||
$Cipher = "NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm"
|
||||
Foreach($Char in $String.ToCharArray())
|
||||
{
|
||||
If ( $Char -match "[A-Za-z]" )
|
||||
{ $NewString += $Cipher.Chars($Alphabet.IndexOf($Char)) }
|
||||
else
|
||||
{ $NewString += $Char }
|
||||
}
|
||||
Return $NewString
|
||||
}
|
||||
$e = "This is a test Guvf vf n grfg"
|
||||
|
||||
[char[]](0..64+78..90+65..77+91..96+110..122+97..109+123..255)[[char[]]$e] -join ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue