1 unstable release
0.1.1 | Aug 15, 2021 |
---|---|
0.1.0 |
|
#2200 in Algorithms
14KB
210 lines
drunken diver
drunken-diver
is a library for generating unique ASCII art for arbitrary byte sequences.
This library is inspired by the "drunken bishop" algorithm that is used to generate SHA256 randomart. Unlike the "drunken bishop" algorithm, the "drunken diver" algorithm aims to map each byte sequence to a unique piece of art.
SECURITY ADVISORY
I have not completely vetted this library to ensure the implementation correctly maps input to unique sequences. Use this library at your own risk.
lib.rs
:
The mental model of this library one should have is that of a drunken diver descending into the depths of the ocean while leaving behind a trail of notes each with a stylized depiction of a direction (left or right), allowing those that come afterwards to swim the same path the diver took.
Please see the examples directory for examples.