Skip to content

danjesus/nash

 
 

Repository files navigation

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.

About

A bijective base 26 encoder/decoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%