Encode/Decode
certutil
Encode/decode files using Base64 or hexadecimal formats.
certutil -encode <input_file> <output_file>certutil -decode <input_file> <output_file>cipher
Encrypt/decrypt files using built-in Windows encryption.
cipher /e <input_file> [/a] [/s:<password>]cipher /d <input_file> [/a] [/s:<password>]System.Text Namespace
Invoking the System.Text Namespace, Encoding Class, and GetByte:
[System.Text.Encoding]::GetBytes()UTF8
Writes output to a file, with options for specifying encoding:
Out-File -FilePath C:\path\to\file.txt -InputObject "Text to add" -Encoding UTF8 Base64
Decode Base64-encoded strings or files.
Encode data into Base64 format.
Base64 encode a string:
Base64 decode a string:
Base64 decode:
Base64 encode a file:
Base64 decode a string to a file:
Unicode Array
Converts the text into a Unicode Array using .NET API:
`([System.Text.Encoding]::Unicode.GetBytes("encoded text"))
URL Encoding
URL encode a string:
URL decode a string:
HTML Encoding
HTML encode a string:
HTML decode a string:
Last updated
Was this helpful?