rune-morse
Morse code encoder and decoder — ASCII text to dots and dashes and back.
What it does
Converts between ASCII text and International Morse Code. Letters are separated by
a single space; words are separated by /. Both uppercase and lowercase input are
accepted during encoding. Useful for CTF challenges, amateur radio utilities, and
educational tools.
Installation
[]
= "0.1"
Usage
Library
use ;
let morse = encode.unwrap;
assert_eq!;
let text = decode.unwrap;
assert_eq!;
CLI
CLI
# Encode text to Morse code
# .... . .-.. .-.. --- / .-- --- .-. .-.. -..
# Decode Morse code to text
# HELLO WORLD
Output
$ rune-morse encode "SOS"
... --- ...
$ rune-morse decode "... --- ..."
SOS
License
MIT