2014-02-10 15:44:02 -08:00
|
|
|
# md5
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Calculate MD5 cryptographic checksums.
|
2021-11-04 01:09:46 +08:00
|
|
|
> More information: <https://ss64.com/osx/md5.html>.
|
2014-02-10 15:44:02 -08:00
|
|
|
|
2016-01-20 03:45:42 -08:00
|
|
|
- Calculate the MD5 checksum for a file:
|
2014-02-10 15:44:02 -08:00
|
|
|
|
2023-08-09 11:18:25 -03:00
|
|
|
`md5 {{path/to/file}}`
|
2015-11-22 18:50:49 +02:00
|
|
|
|
2016-01-20 03:45:42 -08:00
|
|
|
- Calculate MD5 checksums for multiple files:
|
2015-11-22 18:50:49 +02:00
|
|
|
|
2023-08-09 11:18:25 -03:00
|
|
|
`md5 {{path/to/file1 path/to/file2 ...}}`
|
2014-02-10 15:44:02 -08:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Output only the md5 checksum (no filename):
|
2014-02-10 15:44:02 -08:00
|
|
|
|
2023-08-09 11:18:25 -03:00
|
|
|
`md5 -q {{path/to/file}}`
|
2015-11-22 18:50:49 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Print a checksum of the given string:
|
2015-11-22 18:50:49 +02:00
|
|
|
|
2022-02-14 03:21:43 -08:00
|
|
|
`md5 -s "{{string}}"`
|