Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.32 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.32 KB

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