All Projects → thomdixon → pysha2

thomdixon / pysha2

Licence: MIT license
Pure Python implementation of SHA2 (i.e., SHA224, SHA256, SHA384, and SHA512).

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pysha2

hash-wasm
Lightning fast hash functions using hand-tuned WebAssembly binaries
Stars: ✭ 382 (+634.62%)
Mutual labels:  sha256, sha512
hash-checker
Fast and simple application that allows you to generate and compare hashes from files and text
Stars: ✭ 72 (+38.46%)
Mutual labels:  sha256, sha512
WebCrypto.swift
A small collection of cryptographic functions based on the JavaScript WebCrypto API.
Stars: ✭ 16 (-69.23%)
Mutual labels:  sha256, sha512
Checksum
Checksum calculation extensions for Swift
Stars: ✭ 28 (-46.15%)
Mutual labels:  sha256, sha512
fhash
fHash - an open source files hash calculator for Windows and macOS
Stars: ✭ 222 (+326.92%)
Mutual labels:  sha256, sha512
hediye
Hash Generator & Cracker
Stars: ✭ 40 (-23.08%)
Mutual labels:  sha256, sha512
noble-hashes
Audited & minimal JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2 & Scrypt
Stars: ✭ 213 (+309.62%)
Mutual labels:  sha256, sha512
iroha-ed25519
RFC8032 compatible Ed25519 implementation with pluggable hash (sha2-512, sha3-512)
Stars: ✭ 28 (-46.15%)
Mutual labels:  sha2, sha512
jscrypto
Crypto library for Node/ES6/Typescript/Browser.
Stars: ✭ 20 (-61.54%)
Mutual labels:  sha256, sha512
Picosha2
a header-file-only, SHA256 hash generator in C++
Stars: ✭ 408 (+684.62%)
Mutual labels:  sha256, mit-license
Inventus
Inventus is a spider designed to find subdomains of a specific domain by crawling it and any subdomains it discovers.
Stars: ✭ 80 (+53.85%)
Mutual labels:  mit-license
Winter
Winter is a 2D game engine for Pharo Smalltalk
Stars: ✭ 43 (-17.31%)
Mutual labels:  mit-license
SHA256
A C++ SHA256 implementation.
Stars: ✭ 79 (+51.92%)
Mutual labels:  sha256
MyBatisGenerator-Tool
🔧 A tool which aims to generate code by using MyBatis Generator with Gradle in IntelliJ IDEA.
Stars: ✭ 20 (-61.54%)
Mutual labels:  mit-license
Unity-FPS-Counter
#NVJOB FPS Counter and Graph. Free Unity Asset.
Stars: ✭ 44 (-15.38%)
Mutual labels:  mit-license
sha-words
Generate a set of words from a sha in a predictable way
Stars: ✭ 26 (-50%)
Mutual labels:  sha512
fight-for-artistic-creativity
Twitterをディストピアにしないために、我々ができること。
Stars: ✭ 19 (-63.46%)
Mutual labels:  mit-license
powerslaves
Taking PowerSaves as a slave to your will.
Stars: ✭ 28 (-46.15%)
Mutual labels:  mit-license
vr-streaming-overlay
SteamVR overlay for streamers on Linux/Windows
Stars: ✭ 29 (-44.23%)
Mutual labels:  mit-license
JNAPushPopCompletionBlock
Completion Block for UINavigationController Push/Pop UIViewController
Stars: ✭ 40 (-23.08%)
Mutual labels:  mit-license
https://travis-ci.org/thomdixon/pysha2.svg?branch=master

pysha2

License

This software is distributed under the MIT License.

About

pysha2 is a pure Python implementation of the FIPS 180-2 secure hash standard. I originally wrote and published this on the web prior to the inclusion of hashlib into the Python standard library. Unfortunately, the original source was lost due to a hard drive failure. Fortunately, the library proved useful to some at the time (due to the prevalence of Python 2.3 and 2.4), and so I was able to recover all but the unit tests (which I later rewrote).

Usage

The library supports both the "old" hash interface of md5 and sha, as well as the "new" hash interface introduced by hashlib. This permits you to use pysha2 as a drop-in replacement for either interface.

A quick example of hashing a string:

import sha2

print sha2.sha256('Can you keep a secret?').hexdigest()

Testing

To run the included unit tests, execute:

python test.py

in the current directory or run with nosetests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].