Home Explore Blog CI



nushell

commands/docs/encode_base32hex.md
63a969d02aa5bb3c2dd60c69883cef76bd8223b37302502e0000000300000469
---
title: encode base32hex
categories: |
  formats
version: 0.104.0
formats: |
  Encode a binary value or a string using base32hex.
usage: |
  Encode a binary value or a string using base32hex.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `encode base32hex` for [formats](/commands/categories/formats.md)

<div class='command-title'>Encode a binary value or a string using base32hex.</div>

## Signature

```> encode base32hex {flags} ```

## Flags

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


## Input/output types:

| input  | output |
| ------ | ------ |
| binary | string |
| string | string |
## Examples

Encode a binary value
```nu
> 0x[57 6E AD] | encode base32hex
ATNAQ===
```

Encode a string
```nu
> "hello there" | encode base32hex
D1IMOR3F41Q6GPBICK======
```

Don't apply padding to the output
```nu
> "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.

Chunks
648175e6 (1st chunk of `commands/docs/encode_base32hex.md`)
Title: untitled
Summary
--- title: encode base32hex categories: | formats version: 0.104.0 formats: | Encode a binary value or a string using base32hex. usage: | Encode a binary value or a string using base32hex. editLink: false contributors: false --- <!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. --> # `encode base32hex` for [formats](/commands/categories/formats.md) <div class='command-title'>Encode a binary value or a string using base32hex.</div> ## Signature ```> encode base32hex {flags} ``` ## Flags - `--nopad`: Don't pad the output. ## Input/output types: | input | output | | ------ | ------ | | binary | string | | string | string | ## Examples Encode a binary value ```nu > 0x[57 6E AD] | encode base32hex ATNAQ=== ``` Encode a string ```nu > "hello there" | encode base32hex D1IMOR3F41Q6GPBICK====== ``` Don't apply padding to the output ```nu > "hello there" | encode base32hex --nopad D1IMOR3F41Q6GPBICK ``` ## Note