0% found this document useful (0 votes)
5 views

Encode&Decode

Uploaded by

dyuan5326
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Encode&Decode

Uploaded by

dyuan5326
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Here is the link to my code in Replit:

https://replit.com/@nanerkrkr/EncodeandDecode
And here is the encode program and decode program separately.

https://replit.com/@nanerkrkr/encode
https://replit.com/@nanerkrkr/decode

When we run the code, we can input the number to choose whether we want to decode
or encode something.
Firstly, let’ s encode the message “i love you”

\
Now we get the result. Next, let’s decode the message to check.

When we restart the code, we choose the decode option. We need to input the whole
sentence of the output of the encoding process because the friendly message is also a
part of the cryptographic language. Then we need to input the password to decode the
message, which means strangers cannot access this message.

The creativity of my code is that I have 8 keys in the program. Every time I encode, the
computer will choose one randomly, and the friendly message will tell the computer
which key out of 8 I use to encode the message. For example, if I encode the same
message again.
It comes out with different results and different friendly messages.
If I decode the message again, the result will be the same, since we encoded the same
message.

I have several ways to keep the message safe. Firstly, I have 8 keys, so it is difficult to
compute and guess. Secondly, if people can access the program, they will never imagine
the friendly message is important and they need to copy the friendly message to get the
correct answer. Thirdly, if they do not know the password, they cannot see the message
as well. So, in conclusion, the message is quite safe with the encoding program.

You might also like