Skip to content
/ vizhash Public

Python Visual Hash, generate a visual random image associated with a string.

License

Notifications You must be signed in to change notification settings

luxcem/vizhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vizhash

Python Visual Hash, calculate a visual random image associated with a string.

Install

Vizhash is available for python >= 3.2

Build Status codecov PyPI version

pip install vizhash

How it works ?

It uses a maze generation algorithm, at each steps it changes the color of the block with a slightly random change from the previous block.

The idea was to provide a beautiful (?) unique image, I can’t guarantee the security (in terms of collisions) of the function.

Usage

usage: vizhash.py [-h] [-s SEED] [-n N] [-S SIZE] [-f FILENAME]

optional arguments:
  -h, --help            show this help message and exit
  -s SEED, --seed SEED  String to use as a seed
  -n N                  Number of blocks (default : 16)
  -S SIZE, --size SIZE  Block size (default :16)
  -f FILENAME, --filename Output filename, by default will show the image

Examples

truc-13 truc-34 truc-32 truc-26 truc-16 truc-48

Licence

VizHash is distributed under the terms of the LGPL-3.0.

About

Python Visual Hash, generate a visual random image associated with a string.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages