hashkitten

Crates.iohashkitten
lib.rshashkitten
version1.0.1
sourcesrc
created_at2024-11-11 02:50:33.204408
updated_at2024-12-05 01:02:06.394206
descriptionA purrfect hashing companion
homepage
repositoryhttps://github.com/diogogomesaraujo/hash_kitten
max_upload_size
id1443403
size27,180
Diogo Gomes de Araújo (diogogomesaraujo)

documentation

README

Description

hashkitten

Made with Rust License

hashkitten is a fun command-line tool for hashing text and files that I built to learn Rust.

Table of Contents

Introduction

hashkitten is your purrfect hashing companion, built with Rust for fast, secure, and delightful hashing of text and files. With hashkitten, you can hash strings or files and compare hashes with a playful touch.

Features

  • Hashes text and file contents
  • Supports hash comparison
  • Easy-to-read help message
  • Outputs fun, purr-styled hashes

Installation

Linux

  1. Clone the repository:

    git clone https://github.com/username/hashkitten.git
    cd hashkitten
    
  2. Build the project using Cargo:

    cargo build --release
    
  3. Install the compiled binary to a directory in your $PATH (e.g., /usr/local/bin):

    sudo install -m 755 target/release/hashkitten /usr/local/bin/
    

    Now you can use hashkitten as a command anywhere in your terminal.

MacOS (Intel and Apple Silicon)

  1. Clone the repository:

    git clone https://github.com/username/hashkitten.git
    cd hashkitten
    
  2. Build the project using Cargo:

    cargo build --release
    
  3. Install the compiled binary to a directory in your $PATH (e.g., /usr/local/bin):

    sudo install -m 755 target/release/hashkitten /usr/local/bin/
    

    For Apple Silicon, make sure you have the appropriate toolchain installed:

    rustup target add aarch64-apple-darwin
    

    Now you can use hashkitten as a command anywhere in your terminal.

Windows

  1. Clone the repository:

    git clone https://github.com/username/hashkitten.git
    cd hashkitten
    
  2. Build the project using Cargo:

    cargo build --release
    
  3. Add the compiled binary to your system PATH:

    • Locate the compiled binary at target\release\hashkitten.exe.
    • Copy the path to the directory containing hashkitten.exe.
    • Search for "Environment Variables" in the Start Menu, and edit the PATH variable to include the path to the binary.

    Now you can use hashkitten as a command anywhere in your terminal.

Usage

Run hashkitten from the command line with various flags:

hashkitten [FLAGS] ["TEXT"]

Examples

  • Display help message:

    hashkitten -h
    
  • Hash a text string:

    hashkitten "Hello, world!"
    
  • Hash the contents of a file:

    hashkitten -f input.txt
    
  • Compare a message with a given hash:

    hashkitten -c "Hello, world!" HASH
    

Flags

  • -h | --help : Display the help message.
  • -f FILE | --file FILE : Hash the contents of the specified file.
  • -c "MESSAGE" HASH | --compare "MESSAGE" HASH : Compare the provided message with a given hash.

How It Works

Hashkitten is a playful tool that uses the robust SHA-256 hashing algorithm to generate secure hashes for your text or file content. But that's not all — hashkitten adds a fun twist by converting the hash into a unique, purr-inspired style using a custom mapping system. 🐾✨

Support

Love what hashkitten does? Show your support with a ⭐️ and help us make it even better! Got ideas or suggestions? Feel free to open an issue—we'd love to hear from you. Let’s keep those tails wagging! 🐱💻

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 21

cargo fmt