An open API service indexing awesome lists of open source software.

https://github.com/yakdriver/master-sifo-dyas


https://github.com/yakdriver/master-sifo-dyas

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# master-sifo-dyas

Random experiment with a dumb cipher (letter-for-letter swap). It seemed like it wouldn't be too hard to swap a few letters and have the encoded text be English also but not the same English as was input. It turns out this is not as easy as it might seem. This effort takes the [10,000 most common English words](https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/PG/2006/04/1-10000) (which I manually cleaned up a bit to remove stuff that wouldn't help the goal, such as 1-letter letters, except "a" and "I"), encodes them with random ciphers, and then counts English words in the encodings, giving more weight to more frequently-used words. It seems like it should work better than it does. I'll file this under "stuff that I thought would be easy and work fabulously but didn't so not being important moved on from."

## Results

The winning cipher, after extensive iterations, is the "Warm Hold" cipher (named because "warm" maps to "hold").
Of the top 10,000 words, these are the ones that encode to actual words. The cipher wins because many other words appear to be English in patterns of vowel groups, consonant groups, boundaries, prefixes, and suffixes.

| Word | Encoded |
| --- | --- |
| lots | rest |
| does | neat |
| wad | hon |
| mend | damn |
| lonely | remark |
| warm | hold |
| us | it |
| lid | run |
| male | dora |
| two | she |
| no | me |
| songs | tempt |
| god | pen |
| gang | pomp |
| won | hem |
| re | la |
| so | te |
| left | rags |
| ole | era |
| gas | pot |
| beds | want |
| dam | nod |
| men | dam |
| cab | bow |
| road | leon |
| al | or |
| plan | from |
| bust | wits |
| ad | on |
| dad | non |
| ety | ask |
| sad | ton |
| lest | rats |
| pail | four |
| hero | yale |
| palm | ford |
| tint | sums |
| ho | ye |
| had | yon |
| ness | matt |
| toe | sea |
| poets | feast |
| bet | was |
| en | am |
| de | na |
| poor | feel |
| late | rosa |
| hot | yes |
| worm | held |
| ten | sam |
| or | el |
| loud | rein |
| did | nun |
| ed | an |
| tail | sour |
| lo | re |
| tame | soda |
| mob | dew |
| med | dan |
| dis | nut |
| ned | man |
| wars | holt |
| doom | need |
| sail | tour |
| too | see |
| er | al |
| nod | men |
| mud | din |
| was | hot |
| flood | green |
| rely | lark |
| held | yarn |
| win | hum |
| ta | so |
| rung | limp |
| nets | mast |
| we | ha |
| wet | has |
| sun | tim |
| pair | foul |
| bud | win |
| rot | les |
| off | egg |
| sic | tub |
| et | as |
| tin | sum |
| las | rot |
| i | u |
| val | cor |
| act | obs |
| bed | wan |
| nuts | mist |
| rats | lost |
| led | ran |
| ma | do |
| vest | cats |
| eh | ay |
| furs | gilt |
| farm | gold |
| west | hats |
| wail | hour |
| ring | lump |
| navy | mock |
| it | us |
| u | i |
| arm | old |
| raft | logs |
| hail | your |
| worn | helm |
| les | rat |
| rug | lip |
| rum | lid |
| cars | bolt |
| gets | past |
| up | if |
| cool | beer |
| bad | won |
| mad | don |
| moon | deem |
| dost | nets |
| helm | yard |
| vice | cuba |

Cipher:

| Raw | Enc |
| --- | --- |
| a | o |
| b | w |
| c | b |
| d | n |
| e | a |
| f | g |
| g | p |
| h | y |
| i | u |
| j | x |
| k | v |
| l | r |
| m | d |
| n | m |
| o | e |
| p | f |
| q | j |
| r | l |
| s | t |
| t | s |
| u | i |
| v | c |
| w | h |
| x | z |
| y | k |
| z | q |