dev-master 2015-02-25 16:39 UTC

This package is not auto-updated.

Last update: 2024-06-22 15:20:35 UTC


README

Build Status Code Coverage Scrutinizer Code Quality

Nash

"I did have strange ideas during certain periods of time." - John Forbes Nash, Jr.

Nash is a bijective base 26 encoder and decoder from a beautiful mind (and that is not mine).

How to use it

<?php

$word = "are";

$coveredMessage = Nash\Numerology::coverMessage($word); //$coveredMessage = 3849

$coveredWord = 2056;

$uncoveredMessage = Nash\Numerology::uncoverMessage($coveredMessage); //$uncoveredMessage = 'BAC';

Why?

I thought that this would be nice to represent small words as numbers. For example:

In base26 the word duck is equals to 195914 (which is not that bad) and this is useful to express sequential letters (AA, AAA, BA, CAA and other things that look like columns from spreadsheet programs).

So if you have something secret (and really like numbers...) or like numerology maybe this will help with something.