Skip to main content

SHA256 Secure Hashing Algorithm(SHA) CLI app

Project description

The SHA-256 Project - PyPI

Python package implementing of the SHA-256 Secure Hashing Algorithm defined in FIPS 180-4 with a command-line interface.

  • SHA-256 - An Implementation of Secure Hashing Algorithm 2 (SHA-2) with 256-bit digest.
  • This implementation is based on the pseudocode algorithm from Wikipedia and The SHA-256 Project

Usage

sha256_help

1. Hashing a string

python sha256.py -s 'message string'

Screenshot example - String hashing compared with Python's Hashlib sha256 result

sha256_string_hash

2. Hashing a file

python sha256.py -f input-file.txt

Screesnhot example - File hashing

sha256_file_hash

Testing

The Application is tested using Pytest
To run the tests:

pip install -r requirements.txt  
pytest

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

sha256-brandonodiwuor-0.1.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

sha256_brandonodiwuor-0.1.1-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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