Skip to content

Encode URL

Vali (naser) Rafinia edited this page Mar 27, 2023 · 3 revisions

nhash encode url is a sub-command of the nhash tool that allows users to perform URL encoding and decoding.

Usage

nhash encode url <text> [options]

Arguments

  • <text>: The text to be encoded or decoded.

Options

  • -d, --decode: If this option is provided, the command will decode the text instead of encoding it.
  • -o, --output <output>: Write the output to a file instead of printing it on the console.
  • -?, -h, --help: Show help and usage information.

Examples

URL encoding

nhash encode url "Hello World!"

Output:

Hello%20World%21

URL decoding

nhash encode url -d "Hello%20World%21"

Output:

Hello World!

Writing output to a file

nhash encode url "Hello World!" --output output.txt

This will write the output to a file named output.txt instead of printing it on the console.

Clone this wiki locally