Ciphers
Morse code
Letters and digits to dots and dashes. A space between letters, a slash between words.
Cipher / Fractionation
Morse Code
Dots, dashes and a slash between words.
- Keyspace
- 1
- Decode
- same options back
- Works on
- A-Z, 0-9, coded punctuation, / between words, the rest passes
- Family
- 10 in fractionation
no options
Access
- Create
create("morse") - CLI
ciphers encode morse SOS - Tryplayground with the sample above
- Kinpolybius, nihilist, fractionated-morse, bacon +5
International Morse. Each letter or digit becomes dots and dashes, letters separated by one space, words by /. Common punctuation has a code too. A character without one passes through as it is.
const morse = create("morse");
morse.encode("SOS").text; // "... --- ..."
morse.encode("SOS HELP").text; // "... --- ... / .... . .-.. .--."
morse.encode("A, B?").text; // ".- --..-- / -... ..--.."
morse.decode("... --- ... / .... . .-.. .--.").text; // "SOS HELP"
Decoding doesn't care about extra spaces around the slash. Output is uppercase, Morse has no case.