github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

leegao / pyChroma

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Chroma-Hash in python as implemented by http://mattt.me/2009/07/chroma-hash-a-belated-introduction — Read more

  cancel

http://6.dot.ch/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Automates javascript + supports much more backends. 
leegao (author)
Sun Aug 02 00:52:35 -0700 2009
commit  5c0debf40a03d6d175e7dee6a7e9a1d253bf701b
tree    3530be3bcec96813c0ba51deb5b2ddc143eb6133
parent  7b26cd81892c723cb6b9b25e91ae6c139a154be3
pyChroma /
name age
history
message
file Chroma.py Sun Aug 02 00:52:35 -0700 2009 Automates javascript + supports much more backe... [leegao]
file README Sun Aug 02 00:52:35 -0700 2009 Automates javascript + supports much more backe... [leegao]
file chroma.js Sun Aug 02 00:52:35 -0700 2009 Automates javascript + supports much more backe... [leegao]
file chromajs.py Sun Aug 02 00:52:35 -0700 2009 Automates javascript + supports much more backe... [leegao]
file md5.js Sun Aug 02 00:52:35 -0700 2009 Automates javascript + supports much more backe... [leegao]
file sha.js Sun Aug 02 00:52:35 -0700 2009 Automates javascript + supports much more backe... [leegao]
file test.py Sun Aug 02 00:52:35 -0700 2009 Automates javascript + supports much more backe... [leegao]
README
author: Lee Gao
contact: http://6.dot.ch/

pyChroma is based on mattt's chroma-hash experiment. 
It got me to think - what if we could use this as a re-authentication technique instead of the default?
Well the end product is pyChroma, which currently supports SHA1 and MD5 algorithms and can be integrated with vBulletin
and Django backends (the authentication platform).

Basic Usage:

  
  from Chroma import chroma
  
  obj = chroma("sha1$a1976$a36cc8cbf81742a8fb52e221aaeab48ed7f58ab4", 
    alg = "SHA", 
    backend = "django") # A django-authentication styled backend via SHA1 digest
  
  str(obj) # The hashed colors
  obj.javascript # Complete frontend javascript for Chroma-Hash including the algorithm
  
  obj.md5_js # the hex_md5 javascript function
  obj.sha_js # the hex_sha1 javascript function
  obj.engine # the digest engine
  obj.jsengine # the javascript digest engine
  obj.frontend # the method for returning the hash
  obj.salt # the extracted salt for the digest algorithm
  

Revisions

v2 - Automates the generation of the javascript + Added support for Django and vBulletin backends and all of the js 
dependencies (cept for jquery)
v1 - Enables basic hashing
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server