Skip to content

BrandonOdiwuor/sha256_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SHA-256 Algorithm Implementation (Python)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages