Spec-Zone.ru › Nushell

encode hex for formats

Hex encode a binary value or a string.

Signature

> encode hex {flags}

Flags

  • --lower: Encode to lowercase hex.

Input/output types:

input output
string string
binary string

Examples

Encode a binary value

> 0x[C3 06] | encode hex
C306

Encode a string

> "hello" | encode hex
68656C6C6F

Output a Lowercase version of the encoding

> 0x[AD EF] | encode hex --lower
adef

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/encode_hex.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API