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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5a847605a355884ec572c7d7c4e7ee90bad9aa1a2d2a3e31b03b79249fb01c
|
|
| MD5 |
545d86345d9fd1539a76543a3e3c6b32
|
|
| BLAKE2b-256 |
b238ff268708bd13a1dd7434a5f7f5e046d18fba279615ac48e82105d86357f9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45ed33cd091bf1d32a5fae30f065e6628f2e4582548b347c2737be2993b430e4
|
|
| MD5 |
cc372b7aacc3567b7fe7238fd9670589
|
|
| BLAKE2b-256 |
a9ab6a72b424a426d43f384851cca9815a370845b4e5278fd4549602028d9abc
|