mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:15:00 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
34
docs/commands/hash-base64.md
Normal file
34
docs/commands/hash-base64.md
Normal file
@ -0,0 +1,34 @@
|
||||
# hash base64
|
||||
base64 encode or decode a value
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> hash base64 ...args {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* ...args: optionally base64 encode / decode data by column paths
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -c, --character_set <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'
|
||||
* -e, --encode: encode the input as base64. This is the default behavior if not specified.
|
||||
* -d, --decode: decode the input from base64
|
||||
|
||||
## Examples
|
||||
Base64 encode a string with default settings
|
||||
```shell
|
||||
> echo 'username:password' | hash base64
|
||||
```
|
||||
|
||||
Base64 encode a string with the binhex character set
|
||||
```shell
|
||||
> echo 'username:password' | hash base64 --character_set binhex --encode
|
||||
```
|
||||
|
||||
Base64 decode a value
|
||||
```shell
|
||||
> echo 'dXNlcm5hbWU6cGFzc3dvcmQ=' | hash base64 --decode
|
||||
```
|
||||
|
Reference in New Issue
Block a user