Jump to content

Identicon: UDF for Visual Representations of Hashes


dany
 Share

Recommended Posts

Identicon.au3 v0.8

A simple UDF to create identicons or visual representations of any hash value. Based on Don Park's original Identicon program.

Main features:

  • 3x3 and 4x4 grid patterns.
  • Aside from rotational symmetry there are also checkerboard and Space Invader (mirror symmetry) patterns.
  • Adapted to handle hashes up to SHA512.
  • Save as PNG, JPG, GIF or BMP identicons.
  • Alpha-transparency support for PNG.
The UDF and a demo:

Identicon.au3

Identicon-Demo.au3

Version 0.8:
* Initial public release.

To do:

* In the checkerboard pattern there is a bias for diamond shapes.
* Improve image saving, BMP, GIF and JPG suck, much artifacts and dithering.
* Transparency doesn't work with GIF (and BMP?) due to the wrong Bitmap format.
* Add some more unique sprite shapes and preferably cap the shape arrays at powers of two as BitAND is faster than a modulus operation.
Edited by dany

[center]Spiderskank Spiderskank[/center]GetOpt Parse command line options UDF | AU3Text Program internationalization UDF | Identicon visual hash UDF

Link to comment
Share on other sites

Hello!

I particularly liked a lot, but show us some more usage examples!

About transparency in BMP, I think only with a solid background color or alpha channel.

Thanks for sharing.

JS

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

Hello!

I particularly liked a lot, but show us some more usage examples!

About transparency in BMP, I think only with a solid background color or alpha channel.

Thanks for sharing.

JS

Sure, but what kind of examples are you thinking of? I could come up with some quick and dirty visual checksum compare demo (row 2 in the current demo), if that's what you mean.

About transparency well... The BMP is transparent when set as a GUI icon but not when opened in an external image editor. Either way, I've found some stuff here on the forum already on BMP and GIF transparency. Now I'll just have to figure out how to integrate it all without creating some code/maintenance hell.

[center]Spiderskank Spiderskank[/center]GetOpt Parse command line options UDF | AU3Text Program internationalization UDF | Identicon visual hash UDF

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...