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.

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.

Source Distribution

cryptohash-1.0.5.tar.gz (2.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: cryptohash-1.0.5.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for cryptohash-1.0.5.tar.gz
Algorithm Hash digest
SHA256 6ced866356d87d018239c20a425f59824e08c47af4b3169bdb7a497119270ab2
MD5 e80f2f82b40a7499e2da006e7433edd9
BLAKE2b-256 e4b7962830dfa168cfa4bed34d20e6dfd23ecfea2079f6a34d0b284c939b9063

See more details on using hashes here.

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