Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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)

md5(input)

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

Don't use md5 or sha1 for anything sensitive. They're insecure.

input

Type: string

outputFormat

Type: string Values: hex Default: hex

License

MIT Yoginth

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
cryptohash-1.0.5.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page