Skip to main content

Custom hash function for Python

Project description

hashr

Simply a custom hashing package with optional salting, able to be both run from the command line and imported as a package.

Installation

To install, just run either of the below commands.

pip install hashr
pip3 install hashr

Usage

Command Line

To use hashr from the command line, run:

hashr [input]

Make sure to surround an input with double quotes if it contains spaces.
There is also the option to add a salt, which causes duplicate string to have unique hashes. To use this, add the -s flag to the command.

Import Package

To import hashr as a package, add from hashr import [function] to the top of your Python file. The available functions are as follows:

  • hashr: main hashing algorithm, turns any string into a string hash
  • saltr: generates a seven digit salt, either numerical or alphabetical
  • number_to_letters: converts a number to letters based on each digit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hashr-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hashr-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file hashr-1.0.0.tar.gz.

File metadata

  • Download URL: hashr-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hashr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4a5a847605a355884ec572c7d7c4e7ee90bad9aa1a2d2a3e31b03b79249fb01c
MD5 545d86345d9fd1539a76543a3e3c6b32
BLAKE2b-256 b238ff268708bd13a1dd7434a5f7f5e046d18fba279615ac48e82105d86357f9

See more details on using hashes here.

File details

Details for the file hashr-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hashr-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hashr-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45ed33cd091bf1d32a5fae30f065e6628f2e4582548b347c2737be2993b430e4
MD5 cc372b7aacc3567b7fe7238fd9670589
BLAKE2b-256 a9ab6a72b424a426d43f384851cca9815a370845b4e5278fd4549602028d9abc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page