June 22, 2018

Tag Archives: encode

PowerShell :: Convert text file to Base64

Hi, So this script will read the text from a plain text file and then encode it as Base64. It is useful for Base64 encoding PowerShell scripts if you are looking to pass the script as an encoded command line argument. You will need to set the $inputFilePath and $outputFilePath and then execute. You could […]

PowerShell :: Convert a binary file to Base64

Hi, So occasionally I have need to encode files to Base64 and if those files are not simple text then it needs to be done at a binary level. This simple script in PowerShell does that for you, you simply set the $inputFilePath and $ouputFilePath then execute. It outputs to a file as the output […]

Subscribe to SYNACK via Email