LifeHash 1.0.1

LifeHash 1.0.1

Maintained by Wolf McNally.



 
Depends on:
WolfCore>= 0
WolfGraphics>= 0
 

LifeHash 1.0.1

  • By
  • Wolf McNally

LifeHash

CI Status Version License Platform

A method of hash visualization based on Conway’s Game of Life that creates beautiful icons that are deterministic, yet distinct and unique given the input data.

The basic concept is to take a SHA256 hash of the input data (which can be any data including another hash) and then use the 256-bit digest as a 16x16 pixel "seed" for running the cellular automata known as Conway’s Game of Life.

After the pattern becomes stable (or begins repeating) the resulting history is used to compile a grayscale image of all the states from the first to last generation. Using Game of Life provides visual structure to the resulting image, even though it was seeded with entropy.

Some bits of the initial hash are then used to deterministically apply symmetry and color to the icon to add beauty and quick recognizability.

Samples of LifeHash Samples of LifeHash

Samples of LifeHash Samples of LifeHash

Samples of LifeHash Samples of LifeHash

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

LifeHash is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LifeHash'

Author

Wolf McNally, [email protected]

License

LifeHash is available under the MIT license. See the LICENSE file for more info.