Git Product home page Git Product logo

python-sha1's Introduction

Python SHA-1

An implementation of the SHA-1 hashing algorithm in pure python.

This library was designed to demonstrate a straight-forward implementation of the algortihm, and is not designed for speed. The current implementation matches the hashlib api. If you want to see the entire algorithm run in a single function, see this commit.

Usage

The library may be called from the command line. Message input may be piped in stdin:

$ echo hello | python sha1.py
sha1-digest: f572d396fae9206628714fb2ce00f72e94f2258f

One or more files may also be specified as arguments to the script:

 $ python sha1.py myfile myfile2
 sha1-digest: 3f786850e387550fdab836ed7e6dc881de23001b
 sha1-digest: 57a9901af6fe030198ef1737783e2048ee96da4a

python-sha1's People

Contributors

ajalt avatar cfahlgren1 avatar evansneath avatar jessaustin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.