Menu

Cheatsheet

aetherx

Cheatsheet

![Version](https://img.shields.io/github/v/tag/Aetherinox/xsum-shahash-utility?logo=GitHub&label=version&color=ba5225) ![Downloads](https://img.shields.io/github/downloads/Aetherinox/xsum-shahash-utility/total) ![Repo Size](https://img.shields.io/github/repo-size/Aetherinox/xsum-shahash-utility?label=size&color=59702a) ![Last Commit)](https://img.shields.io/github/last-commit/Aetherinox/xsum-shahash-utility?color=b43bcc) [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FAetherinox%2Fxsum-hash-utility&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=views&edge_flat=false)](https://hits.seeyoufarm.com)







Generate

The following are a list of examples for generating a new hash digest. Some commands have multiple ways of executing them.


Current directory - default algorithm

Generate a hash digest in the current directory with the default algorithm SHA256

xsum --generate
xsum -g


Current directory - specific algorithm

Generate a hash digest in the current directory with a specific algorithm

xsum --generate --algo <ALGORITHM>
xsum -g -a <ALGORITHM>


Specific directory - default algorithm

Generate a hash digest in a specific directory elsewhere on your system using default algorithm SHA256

xsum --generate "X:\Path\To\Folder\Or\File"
xsum --generate --target "X:\Path\To\Folder\Or\File"
xsum -g -t "X:\Path\To\Folder\Or\File"


Specific directory - specific algorithm

Generate a hash digest in a specific directory with a specific algorithm

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM>
xsum --generate --target "X:\Path\To\Folder\Or\File" --algo <ALGORITHM>
xsum -g -t "X:\Path\To\Folder\Or\File" -a <ALGORITHM>


Lowercase hashes instead of uppercase

Generate a hash digest and use lowercase characters instead of uppercase.

Setting Example
Default 1D3EF8698281E7CF7371D1554AFEF5872B39F96C26DA772210A33DA041BA1183
Lowercase 1d3ef8698281e7cf7371d1554afef5872b39f96c26da772210a33da041ba1183


xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --lowercase
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -l


Show progress during generation

Generate a hash digest and displays each step of the process in your console.

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --progress
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -p


Clear console before generating

Generate a hash digest but wipe the console clear before it begins

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --clear
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -cl


Exclude specific file from generated hash digest

Generate a hash digest but ignore a certain file which will not be included in the digest's list of files. The following command will exclude the file myfile.txt and ANY file which ends with .dll.

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --exclude myfile.txt --exclude *.dll
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -e myfile.txt -e *.dll


Log progress to file (append)

Generate a hash digest and log each step to a specified log file. If the log file does not exist, it will be created. If the file already exists, the new log entries will be added to the bottom of the existing log file.

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --output mylog.txt
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -o mylog.txt


Log progress to file (overwrite)

Generate a hash digest and log each step to a specified log file. If the log file does not exist, it will be created. If the file already exists, everything in the log file will be deleted and a fresh log will be written to.

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --output mylog.txt --overwrite
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -o mylog.txt -w


Copy hash to clipboard

Generate a hash digest, if the target files are a folder or string, the generated hash will be copied to your Windows clipboard. If the target is a list of files, the "sum" of all the files will be turned into a single hash.

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --clipboard
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -c


Combo Example

Generate a hash digest. The example below shows how to structure a command using many of the commands available.
- Generate hash
- Use specific algorithm
- Clear console before executing
- Show progress
- Log progress to file mylog.txt
- Overwrite anything currently in log file
- Copy resulting hash to clipboard

xsum --generate "X:\Path\To\Folder\Or\File" --algo <ALGORITHM> --clear --progress --output mylog.txt --overwrite --clipboard
xsum -g "X:\Path\To\Folder\Or\File" -a <ALGORITHM> -cl -p -o mylog.txt -w --c

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.