Skip to main content

Tiny hashing module that uses the native crypto API in Python

Project description

Crypto Hash

Tiny hashing module that uses the native crypto API in Python

Demo

Demo on Repl.it

Screenshot

Install

$ pip install cryptohash

Usage

from cryptohash import sha1

print (sha1('🤓'))
#=> d0b16946377589fbc68d8b1ca324f16e84171463

API

API

sha1(input)

sha224(input)

sha256(input)

sha384(input)

sha512(input)

Returns a Promise<string> with a hex-encoded hash.

SHA-1 is insecure and should not be used for anything sensitive.

input

Type: string

outputFormat

Type: string Values: hex Default: hex

Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.

  2. For bug reports and feature requests, open issues.

  3. For direct and quick help, you can email me.

How to contribute

Have an idea? Found a bug? See how to contribute.

Thanks!

License

MIT

Project details


Download files

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

Files for cryptohash, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size cryptohash-1.0.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page