![]() | UtilSimple |
The UtilSimpleObfuscator type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Deobfuscate | Decodes an obfuscated string by reversing the obfuscation process. |
![]() ![]() | Obfuscate | Obfuscates the specified plain text by applying a reversible transformation. |
$t="secret"; $b=[Text.Encoding]::UTF8.GetBytes($t); $kb=[Text.Encoding]::UTF8.GetBytes("QS1994!"); 0..($b.Length-1)|%{$b[$_]=$b[$_] -bxor $kb[$_ % $kb.Length]}; [Convert]::ToBase64String($b)