researchsquare/koremutake

This package is abandoned and no longer maintained. No replacement package was suggested.

1.0.0 2016-03-28 20:30 UTC

This package is not auto-updated.

Last update: 2020-01-24 16:15:40 UTC


README

A PHP library for working with Koremutake Memorable Random Strings.

See Shorl (http://shorl.com/koremutake.php) for the original inspiration.

Here's the simple run-down of the algorithm.

The syllables used in Koremutake have been picked to be phonetically unique in order to avoid as many mis-memorations as possible.

Each syllable consists of two or three letters. There are 128 different syllabels which means that each one represents 7 bits. The bit values are then concatenated to make up a bigger number. There is no padding, no built in compression and no checksum.

These are the syllables, in order of magnitude (the first one is the value 0, the last one is the value 1111111 in binary or 127 in decimal notation):

BA BE BI BO BU BY DA DE DI DO DU DY FA FE FI FO FU FY GA GE GI GO GU GY HA HE HI HO HU HY JA JE JI JO JU JY KA KE KI KO KU KY LA LE LI LO LU LY MA ME MI MO MU MY NA NE NI NO NU NY PA PE PI PO PU PY RA RE RI RO RU RY SA SE SI SO SU SY TA TE TI TO TU TY VA VE VI VO VU VY BRA BRE BRI BRO BRU BRY DRA DRE DRI DRO DRU DRY FRA FRE FRI FRO FRU FRY GRA GRE GRI GRO GRU GRY PRA PRE PRI PRO PRU PRY STA STE STI STO STU STY TRA TRE.

Installation

Install the latest version with:

$ composer.phar require researchsquare/koremutake

Usage

This library can both encode and decode Koremutake strings.

Koremutake\Koremutake::decode('koremutake'); // 10610353957
Koremutake\Koremutake::encode(10610353957); // 'koremutake'