I made a system where two Arduino Unos communicate with Morse code. But I want this communication to be encrypted. How can I include morse codes with symmetric or asymmetric encryption algorithms in this system? I need a lot of help..
First of all u must choose a algoritm, depending the importance of the message. It can be something simple, like the Cesar algoritm (add a specific value, that may also e connected to the current time, depending to the sistem's speed) or things more complex
Are the systems connected in real-time (dit-to-dit / dah-to-dah) or does the sender finish the message / word / letter before encrypting and sending?
how secure does it need to be ?
if you need to encode as you type, that won't be very strong unless you use Streamciphers (ARCFOUR for example)
if you can accumulate a number of characters before sending, like 16 in one go for example, then you can use AES or similar (block ciphers)
but if you use strong coding technics you end up with binary
So you'll need to transform those into ascii, usually we would go for base 64 but morse is just capital letters no small caps.
so you'll need to come up with something like "Base16" or "Base32" meaning take a similar approach but you only group 4 or 5 bits together and assign a character. You'll need to decide how you do padding at the end