Skip to content
/ Kushn Public

Kushn is a robust and lightweight utility written in Rust for generating SHA256 hashes of files.

License

Notifications You must be signed in to change notification settings

Dan0xE/Kushn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kushn: SHA256 File Hash Generator

Table of Contents


Overview

Kushn is a robust and lightweight utility written in Rust for generating SHA256 hashes of files.
It recursively scans all files in the current directory and its subdirectories, creating a JSON file.
This file provides a clear overview of each file and its corresponding hash.


Features

  • Hashing: Generates SHA256 hashes for all files in the current directory and nested directories.
  • Customizable Output: Allows specification of a custom output file name.
  • Ignores Files or Folders: Supports the use of a .kushnignore file to specify files, folders, or file types to be excluded from the scan.

Installation

Install Kushn directly from the official Rust package manager, cargo:

cargo install kushn

Usage

Run Kushn in the current directory:

kushn

To specify a custom output file name, use:

kushn --name your_name.json

Kushnignore

To ignore specific files, folders, nested folders, or file types during the scan, create a .kushnignore file in the root directory.

  • Ignore a folder: folder
  • Ignore a nested folder: folder/subfolder
  • Ignore a specific file type: *.txt
  • Ignore a specific file: test.txt or folder/test.txt

Output

The output will be a JSON file (kushn_result.json by default, or a custom name if specified) containing an array of objects.
Each object represents a file and its hash.

Example output:

[
  {
    "path": "folder/test.txt",
    "hash": "12345"
  }
]

Contributions

Contributions, issues, and feature requests are welcome.


License

Distributed under the MIT License. See LICENSE for more information.

About

Kushn is a robust and lightweight utility written in Rust for generating SHA256 hashes of files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages