Skip to content

Python Automation Program - To make your life easy

Notifications You must be signed in to change notification settings

ags4436/secret_project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secret_project

Python Challenge

  • First upon analyzing the program we can find that there are three main functions used

    1. xor
    2. Hex convertor
    3. shift
  • As we try to deconstruct the program by commenting all the functions except xor function, and try to see what the xor function does to the input given a single character, we get an output of xor of the char. lets see if the fucntion is a reversible function. So lets use the output which we have got as the input to see if we get the charater which we used in the first step. Yes! we get the same character. Hece this function is a reversible function.

  • Now Lets see what the shift function does. It converts the text to a ascii value and shifts it. We know that modulo has no invertable operator. Thus, we need not worry to reverse the operator. Lets inverse the (+) operator to (-) and vice-versa. Now we have made the function to deshift the input.

  • The Finaly function encode, converts the string to a hex format. We can use binascii python module to unhexify

  • Logically we reconstruct the function to our advantage. And give the cipher text as input, Hurray we have solved this challenge.

About

Python Automation Program - To make your life easy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%