Skip to content

AssassinUKG/XOR_BASE64_String

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

XOR_Base64_String

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.

Encode/Decode

image

image

Usage

$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

Amsiutls example

Copy the xor function or include it in your script!

image

Before

image

After

image

Decode with CyberChef image

About

A xor and base64 routine for powershell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published