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 base32 for formats

Encode a string or binary value using Base32.

Signature

> encode base32 {flags}

Flags

  • --nopad: Don't accept padding.

Input/output types:

inputoutput
binarystring
stringstring

Examples

Encode a binary value

> 0x[01 02 10] | encode base32
AEBBA===

Encode a string

> "hello there" | encode base32
NBSWY3DPEB2GQZLSMU======

Don't apply padding to the output

> "hi" | encode base32 --nopad
NBUQ

Notes

The default alphabet is taken from RFC 4648, section 6.

Note this command will collect stream input.