DEV Community

Michael Lee
Michael Lee

Posted on

HackTheSite Basic 6

Image description

Since the task is regarding encryption, we should try a few exmaples.

11111 -> encrpted string is 12345
encrypted password 6f3i<667 -> 6g5l@;<>

From above, it's recognizable that each character is shifted forward by 1 position following the ASCII table.

Position 1: 1 → 1 (shift by 0)
Position 2: 1 → 2 (shift by +1)
Position 3: 1 → 3 (shift by +2)
Position 4: 1 → 4 (shift by +3)
Position 5: 1 → 5 (shift by +4)

Therefore, to decrypt, we shift the character backwards by 1 position.
This required a little more thinking but wasn't too difficult to decipher.

Top comments (0)