W3cubDocs

/Nushell

encode base64 for hash

Encode a string or binary value using Base64.

Signature

> encode base64 {flags} ...rest

Flags

  • --character-set, -c {string}: specify the character rules for encoding the input. Valid values are 'standard', 'standard-no-padding', 'url-safe', 'url-safe-no-padding','binhex', 'bcrypt', 'crypt', 'mutf7'

Parameters

  • ...rest: For a data structure input, encode data at the given cell paths

Input/output types:

input output
binary string
list<any> list<string>
list<binary> list<string>
list<string> list<string>
record record
string string
table table

Examples

Encode binary data

>0x[09F911029D74E35BD84156C5635688C0] |encode base64
CfkRAp1041vYQVbFY1aIwA==

Encode a string with default settings

>'Some Data'|encode base64
U29tZSBEYXRh

Encode a string with the binhex character set

>'Some Data'|encode base64--character-setbinhex
7epXB5"%A@4J

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