SkillAgentSearch skills...

Vizhash

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

Install / Use

/learn @luxcem/Vizhash
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated4y ago
Forks4

Languages

Python

Security Score

75/100

Audited on Dec 16, 2021

No findings