Skip to content

CMD b64

zplutor edited this page Oct 3, 2023 · 3 revisions

b64

Base64 encodes or decodes text.

Usage

b64 <text> [/e] [/d] [/u8] [/u16] [/h]

text is the string to be encoded or decoded. If there are spaces in text, enclose it in double quotation marks ". Or use text block (press ALT+T to insert) to contain arbitrary text.

/e, /d switches indicate that encoding mode or decoding mode is used explicitly. If none of them is specified, the command will detect if text is a Base64-encoded string, if so, decoding mode will be used, otherwise encoding mode will be used.

/u8, /u16 switches indicate what encoding text uses. They represent UTF-8 and UTF-16 respectively. UTF-8 is default if none of them is specified.

/h switch indicates that the decoded content is displayed in hex format rather than in text.

Example

Encode a specified text which is in UTF-16:
b64 "This is a text." /u16

Decode an encoded text and display the result in hex format:
b64 VGhpcyBpcyBhIHRleHQu /h

Clone this wiki locally