decode base64
for hash> decode base64 {flags} ...rest
--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'--binary, -b
: Output a binary value instead of decoding payload as UTF-8...rest
: For a data structure input, decode data at the given cell pathsinput | output |
---|---|
list<string> | list<string> |
record | record |
string | string |
table | table |
Base64 decode a value and output as UTF-8 string
>'U29tZSBEYXRh'|decode base64
SomeData
Base64 decode a value and output as binary
>'U29tZSBEYXRh'|decode base64--binary
Length:9 (0x9) bytes|printablewhitespaceascii_othernon_ascii
00000000:536f6d652044617461SomeData
Will attempt to decode binary payload as an UTF-8 string by default. Use the --binary(-b)
argument to force binary output.
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/decode_base64.html