Skip to content

Java-Implementation of a hash function that computes human-readable output.

License

Notifications You must be signed in to change notification settings

heharkon/readable-hash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readable Hash

Implements a hash function that computes human-readable output. Built with plain Java and Maven.

The computed values are strings alternating between consonants and vowels. One possible usecase is the pseudonymization of data.

Example outputs of the current implementation are Mezimjhjbu, Xabjfo or La.

Build Status

Usage

Either use the provided static void main, or use the ReadableHash-class:

ReadableHash readableHash = new ReadableHash();

String myHash = readableHash.hashAsReadableString("Hello, World!");
assertEquals("Cjtaqafeyu", myHash);

String myOtherHash = readableHash.toReadableString(1234L);
assertEquals("Subise", myOtherHash);

Related Work

  • humanhash by zacharyvoase is a Python program that turns digests into a series of words from the english language, so that it can be "shouted down a hallway".

License (MIT)

Copyright 2014 Felix Neumann (http://fxnn.de)

This project is free software released under the MIT/X11 license:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Java-Implementation of a hash function that computes human-readable output.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%