Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

encode base32hex for formats

Encode a binary value or a string using base32hex.

Signature

> encode base32hex {flags}

Flags

  • --nopad: Don't pad the output.

Input/output types:

inputoutput
stringstring
binarystring

Examples

Encode a binary value

> 0x[57 6E AD] | encode base32hex
ATNAQ===

Encode a string

> "hello there" | encode base32hex
D1IMOR3F41Q6GPBICK======

Don't apply padding to the output

> "hello there" | encode base32hex --nopad
D1IMOR3F41Q6GPBICK

Notes

This command uses an alternative Base32 alphabet, defined in RFC 4648, section 7.

Note this command will collect stream input.