Enter E to Encode and D to Decode Then, enter the text you wish to Encode / Decode. You will get the result. This only supports 9 characters. Sorry I can't add Capitalisation (Capital / Small letters) Symbols will be added in future. The project breaks when using symbols.
This project converts your message to a secret code and decodes the code. You can use this project to secretly communicate with others. ================ Credits =================== Idea from - Tom Scott (YouTuber) Math - by Me ============== How this works ============== = = = = = = = = = = = Encoding = = = = = = = = = = = = Eg - You are encoding the word "Code" The encoded number is the answer number of all the letters added together. The equation to find the Answer Value is (64 ^ position) * value = = = = = = = = Position = = = = = = = = = C o d e 3 2 1 0 E x a m p l e 6 5 4 3 2 1 0 Position of "e" is 0, of "d" is 1, of "o" is 2, of "c" is 3 ================== Value ================ - Value of 1 is 1, of 2 is 2... of 9 is 9 - Value of a is 10, of b is 11, of c is 12... of y is 34, of z is 35 - Symbols between values 36 - 61 - Value of space is 62, of ~ is 63. So let's plug these values into the equation - (64^0)*14 Anything ^0 is 1, so now it's 1*14 which is 14 So the answer value of e is 14. The encoded number is the Answer Value of all the digits added together. ================= Decoding ================= Divide code by 64 (not the decimal division, the remainder division). The remainder is 14. "e" has a value of 14. Then divide the quotient by 64, remainder is next letter (d). Then divide that quotient by 64. the remainder is next letter. Repeat this until the quotient is less than 64. Then, when it is less than 64, put the quotient as the next letter. You got the Message.