Go to file
Wolf McNally 2366f6cb2b Grid layout in Gallery demo app. 2019-05-04 13:17:22 -07:00
Art Added Gallery demo app. 2019-05-03 14:59:33 -07:00
Example Grid layout in Gallery demo app. 2019-05-04 13:17:22 -07:00
Sources/LifeHash Better color picking. Version 1.0.0! 2019-05-02 17:10:10 -07:00
.gitignore First commit. 2018-09-19 12:25:26 -07:00
.travis.yml First commit. 2018-09-19 12:25:26 -07:00
LICENSE First commit. 2018-09-19 12:25:26 -07:00
LifeHash.podspec Grid layout in Gallery demo app. 2019-05-04 13:17:22 -07:00
README.md Better color picking. Version 1.0.0! 2019-05-02 17:10:10 -07:00

README.md

LifeHash

CI Status Version License Platform

A method of hash visualization based on Conways 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 Conways 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, wolf@wolfmcnally.com

License

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