I encrypted my flag so that nobody can see it, but now I realize I don't know how to decrypt it. Can you help me?
esrever.py contains 4 functions
enc4. The first step would be to determine how to reverse each of these functions
enc4can be reversed by using the same mapping array but assigning in reverse.
enc3, similar to
enc4can be reversed using the same mapping aray and assiging in reverse.
enc2is an xor function and hence is its own reverse.
enc1is a caesar shift of a random value and hence needs to be iterated for the range of the random value
encryptedKey being encrypted with
enc1 a hundred times does not matter as the caesar shift can be tested on all values of 0 to 26.
The flag is obtained on reversing each function from the end.