Skip to main content

Creates hash by salt + hex

Project description

hexedhash

A module to create a hash from text by translating the text into a hex, adding a "salt" and trimming out the extra parts.

How to use

Using the module is very easy. Here are a couple of examples.

First example

from hexedhash import Hasher
hash01 = Hasher(prefix="ltcp", salt="hash::189dj")

if __name__ == "__main__":
    print(hash01.makehash("Hello world!"))

Output:

ltcp[3a6f3a203177386f]

Second example

from hexedhash import Hasher
if __name__ == "__main__":
    print(Hasher().makehash("Hello world!"))

Output:

ltcp[5f6f73206577636f]

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

hexedhash-1.0.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

hexedhash-1.0.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

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