A PowerShell module for performing XOR operations followed by Base64 encoding.
This module is ideal for integrating into scripts where there's a need to obscure certain terms from being detected, enhancing the security posture of your code.
Note: The base64 was selected to handle the characters that the terminal can't display fully.
$string = "hello, This is a test"
$key = "Th1s1sMyK3y" # Don't Forget to change the key!
# XOR the string and encode to Base64
$base64XoredString = XOR_String -string $string -key $key
# Decode from Base64, XOR the string and encode back to Base64
$base64XoredString = XOR_String -string $base64XoredString -key $key
# Store the result in a variable, include the xor_base64_string function in your script
$base64XoredString
Copy the xor function or include it in your script!