0

My OS is Windows 10, I'm using Visual Studio 2019, the language is C#

My goal is to make a function that would decode the encoded text.

I do not know what encoding algorithm it uses.

Here are a few examples:

Example 1:

Encoded text = )3)6,..?1EB

Decoded text = encodedtext

Example 2:

Encoded text = )='485/

Decoded text = example

If anyone could help me, it would be really appreciated.

Thank you in advance.

Community
  • 1
  • 1
hcker49
  • 11
  • 2
  • This doesn't look like encryption. It is encoding. So it look like it is a mapping between characters. For example the character ')' is the letter 'e'. – jdweng Apr 12 '20 at 09:38
  • Is it that you do not know the encryption algorithm, or do you know the algorithm but not the key? In the latter case, you can at least try to brute-force. – Klaus Gütter Apr 12 '20 at 09:40
  • @jdweng But later on, the e character is / Any ideas? – hcker49 Apr 12 '20 at 09:41
  • Take a look at the [ASCII table](http://www.asciitable.com/) (for starters, at least; this isn't necessarily limited to ASCII). Note that it drifts; the amount it increases the character is one more each time. `e` became `)`, then two characters later, `c` became `)`. See if you can reproduce the encoding with that information, then work on the decoder. – madreflection Apr 12 '20 at 09:41
  • @KlausGütter I do not know the encoding algorithm, I am trying to figure it out and make a decoding function for it. – hcker49 Apr 12 '20 at 09:42
  • That should be Caesar Cipher or some other [substitution cipher](https://en.wikipedia.org/wiki/Substitution_cipher)... – Alexei Levenkov Apr 12 '20 at 09:49
  • @AlexeiLevenkov It was not the Ceaser Cipher, but thanks for trying. For the substitution cipher, I do not really know about, as I am quite new to encoding – hcker49 Apr 12 '20 at 09:56
  • The encoding looks like the text and the encoded text are the same number of characters. So the algorithm is some how using previous characters(s) to encode current character. – jdweng Apr 12 '20 at 10:02
  • Thanks for all the help, with the help of some other people, i wrote this and I got the encoding algorithm, now all i need to do is make the decode function :) @AlexeiLevenkov could you unlock the thread so i could post the answer? – hcker49 Apr 12 '20 at 11:04

0 Answers0