mirror of
https://github.com/nushell/nushell.git
synced 2024-12-04 14:25:25 +01:00
28 lines
400 B
Markdown
28 lines
400 B
Markdown
|
---
|
||
|
title: hash sha256
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
hash a value using the sha256 hash algorithm
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> hash sha256 ...rest```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `...rest`: optionally sha256 hash data by cell path
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
sha256 encode a string
|
||
|
```shell
|
||
|
> echo 'abcdefghijklmnopqrstuvwxyz' | hash sha256
|
||
|
```
|
||
|
|
||
|
sha256 encode a file
|
||
|
```shell
|
||
|
> open ./nu_0_24_1_windows.zip | hash sha256
|
||
|
```
|