Skip to content

Turn ID numbers etc. into pronounceable words with Scala

Notifications You must be signed in to change notification settings

heharkon/SylCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SylCode

SylCode is a small piece of Scala code for presenting ID numbers as pronounceable "words", combinations of syllables, consisting of a consonant and one or two vowels.

SylCode is inspired by https://github.com/heharkon/readable-hash project and others.

Usage

To convert an ID number to a word:

SylCode.bigIntToSyllableString(BigInt(34873925))

will give you coded ID sixaaneefu.

If there's a need, you can decode it back to BigInt:

SylCode.syllableStringToBigInt("sixaaneefu")

will give you Some(BigInt(34873925)) or None, if it couldn't be decoded.

About

Turn ID numbers etc. into pronounceable words with Scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages