Skip to main content

Convert cumbersome strings into memorable phrases

Project description


Convert cumbersome strings into memorable phrases.


pip install xkcd936


from xkcd936 import visualize
memorable_str = visualize('k2dhE4hd@!Y')


This generator performs an MD5 hash of the input. The resulting bits are used to choose a grammatical template:

  • article adj adj animal
  • adj article adj animal

The dictionary can be upgraded to include patterns like:

  • verb article adj noun
  • article adj adj noun
  • article adv adj noun
  • adv verb article noun

and a word for each slot.

The total space is around 43 bits. This may not sound like much, but it doesn't matter.

Software doesn't just run on the computer -- it also runs in each of your users' heads. For many problems with user-facing software, "adding more bits" is the wrong solution. The right solution often involves tapping into the user's natural cognitive and social capabilities.


Released under MIT license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xkcd936-1.0.0.macosx-10.13-x86_64.tar.gz (2.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page