W3cubDocs

/Nushell

hash md5 for hash

Hash a value using the md5 hash algorithm

Signature

> hash md5 {flags} ...rest

Flags

  • --binary, -b: Output binary instead of hexadecimal representation

Parameters

  • ...rest: optionally md5 hash data by cell path

Input/output types:

input output
record record
string string
table table

Examples

Return the md5 hash of a string, hex-encoded

>'abcdefghijklmnopqrstuvwxyz'|hash md5
c3fcd3d76192e4007dfb496cca67e13b

Return the md5 hash of a string, as binary

>'abcdefghijklmnopqrstuvwxyz'|hash md5--binary
Length:16 (0x10) bytes|printablewhitespaceascii_othernon_ascii
00000000:c3fcd3d76192e4007dfb496cca67e13b××××a××0}×Il×g×;

Return the md5 hash of a file's contents

>open./nu_0_24_1_windows.zip|hash md5

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