Python Forum
File encryption - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: File encryption (/thread-22235.html)



File encryption - itzik - Nov-05-2019

hi,
how can i unencrypted python file?
i have this lines:

def index ():#line:239
    OOO0O00OOOOO0O000 =int (errorChecking (count =True ))#line:240
    OO0000OOOO000000O =str (OOO0O00OOOOO0O000 )#line:241
thanks


RE: File encryption - MckJohan - Nov-05-2019

good lord. we need crystal ball to understand this. :D


RE: File encryption - Gribouillis - Nov-05-2019

The code doesn't appear to be encrypted. The developer chose the unusual (but valid) variable name OO0000OOOO000000O. Don't do the same in your own code! You could replace this name with spam for example.


RE: File encryption - buran - Nov-05-2019

I guess the code is in6tentionally obfuscated


RE: File encryption - itzik - Nov-05-2019

(Nov-05-2019, 05:38 AM)Gribouillis Wrote: The code doesn't appear to be encrypted. The developer chose the unusual (but valid) variable name OO0000OOOO000000O. Don't do the same in your own code! You could replace this name with spam for example.

thanks alot.
is there any way to convert it back to "English"?


RE: File encryption - Gribouillis - Nov-05-2019

itzik Wrote:is there any way to convert it back to "English"?
If you mean by that retrieve a meaningful explanatory name that tells us which kind of data this variable is supposed to contain, then no, there is no way to do that. The best you can do is rename the variable to a word that you can pronounce without effort. For the rest, you need to analyse what the code does with data, which can be much harder.

Note that index and errorChecking could be misleading words that should perhaps be replaced by credit_card_number and user_account but there is no way to tell.