Skip to content

jimbao/bogohash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hash is fast, hash is cool

Benefits

  • Fast
  • Consistent
  • Not sensitive to brute force attacks
  • Has so many neat properties! For any strings x and y, where H() is the bogohash function and "+" is concatenation, all of these things are true:
    • H(x)+H(y) = H(y)+H(x)
    • H(x)+H(y) = H(x+y)
    • H(x+y) = H(y+x)
    • H(x+0) = H(x) (where 0 is empty input data)

Flaws

  • Many hash collisions Q(' .')-O
  • For large input data sizes, the hash may be inconveniently large

Installation

It's not recommended to install this package. But if you read this far, why not.

pip install bogohash

Usage

import bogohash

myhash = bogohash.bogo("password")
digest = myhash.digest()

About

When you don't care about hash functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages