Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Calculate message digests of files or standard input

Project Description

Calculate a cryptohash on a file or standard input.


digest algorithm [file] …

The digest utility calculates message digests of files or, if no file is specified, standard input. The set of supported digests depends on the current Python interpreter and the version of OpenSSL present on the system. However, at a minimum, digest supports the following algorithms:

Argument Algorithm
md5 The MD5 algorithm
sha1 The SHA-1 algorithm
sha224 The SHA-224 algorithm
sha256 The SHA-256 algorithm
sha384 The SHA-384 algorithm
sha512 The SHA-512 algorithm

This program is modeled on the digest program found in BSD Un*x systems and written by Alistair G. Crooks. This Python version is an independently implemented program based on the manual page and output from the BSD digest program.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (5.2 kB) Copy SHA256 Checksum SHA256 Source Mar 15, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting