Make a procedure which takes a text input and returns it in the encoded form. Also, make another procedure which can decode the same encoded form into the original text.
Rules
The encoding must be reversible.
Do not use any components for encoding nor any extensions. The algorithm must be implemented by yourself.
You may encode the input text into non-text forms also, given that it can be captured in a screenshot. (I wonât give more hints)
Try something unique.
Submission
Post the text or a screenshot of input, encoded form, and decoded form of all four of the given sample input, in this topic. Use âDo Itâ for screenshots or paste as text inside a fenced code block (use the following as a template).
Sample Input
Hello Kodular
Thanos is half $@^%*!#
I'm a 1337
I â¤ď¸ emojis (Removed for lack of support for Unicode char code in Kodular)
Template
```
Input: <one of the sample input>
Encoded: <encoded text>
Decoded: <decoded text>
```
Winning Criteria
The most creative encoding creator will be the winner. This will be judged by the number of likes the post gets.
Award
The winner will be known as âKrypto Masterâ thereafter.
Credits
This challenge was inspired by an ongoing Code Jam on PwnSquad discord server.
Not sure about that. I didnât really find any other way to encode the emojis and the special characters as there is a large range of emojis and special characters available.
Iâm not participating in the challenge, but I wanted to show that it is possible to make this without any component. Even more, I made a simple coding and decoding system that generates a different code for the same string every time is called, and of course is totally reversible. The only drawback is that it doesnât encode emojis.
This coding is not unbreakable but without seeing the encoding process it will be hard to find out.
(Thanks to @Taifun for his LEADING ZEROES procedure)
While writing the post for this challenge, I tried to cover most types of text used generally in the test cases. It seems we need to support âtext to char codeâ and âchar code to textâ block which supports conversion of text to ascii/unicode char code and vice versa.