Go to file
Wolf McNally c5ff95d64d Added titles and detail view. 2018-12-07 12:20:21 -08:00
Art Added titles and detail view. 2018-12-07 12:20:21 -08:00
Example Added titles and detail view. 2018-12-07 12:20:21 -08:00
LifeHash Removed dependency on CommonCryptoModule, as Swift 4.2 now includes an import for CommonCrypto. 2018-11-30 13:43:12 -08: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 Added titles and detail view. 2018-12-07 12:20:21 -08:00
README.md Added titles and detail view. 2018-12-07 12:20:21 -08: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

Samples of LifeHash Samples of LifeHash

Example

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

Requirements

Swift 4.2

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.