Skip to content

mckernant1/hasher

Repository files navigation

Hasher

Command line hasher for linux file verification written in Kotlin using picoCLI

To run in project

./gradlew run

To build jar

Jar path is build/libs/hasher-all.jar

./gradlew shadowJar

To install via brew

brew tap mckernant1/tap
brew install hasher

Commands

To hash a file or directory with a given name

hasher hash myhash ~/Desktop/test.txt

To list all hashes

hasher ls 

To list all files for a hash

hasher ls myhash

To check a hash

hasher check myhash

Settings JSON Structure

{
  hashes: {
    hashName: {
      files: { // List of paths to verify with their corresponding hash value
        "/home/test.txt": "hashValue"
      },
      options: { // options with their default values
        includeWhitespace: false, 
        includeTimestamp: false,
        algorithm: "MD5"
      }
    }
  }
}