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)

md5(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.

Source Distribution

cryptohash-1.0.4.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file cryptohash-1.0.4.tar.gz.

File metadata

  • Download URL: cryptohash-1.0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.0

File hashes

Hashes for cryptohash-1.0.4.tar.gz
Algorithm Hash digest
SHA256 71dd4dd2da3286b9a478f3b23c542caf551ea3e668d60991764106551003532a
MD5 66aed74d2dd4ec2077744545345414b8
BLAKE2b-256 cfbcba7139090c03b786eb6953a55a208423853d9bf25e57d841a73c997f2852

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