Friday, January 27, 2017

How To Run A Python Program On Windows Withoiut A .EXE File Or Compiler.

How To Run Python Apps On Windows Automatically Without Any .exe File.
Misconceptions about Python.
  1. You don't need any py2exe or compiler to run any Python program on Windows.
  2. Python versions 2.7 and higher all contain OS.
  3. Create a .py file that will use OS that runs your Python program automatically. 
  4. Name it: and add the following three lines.
  5. import os
  6. userw='path_to/'
  7. os.system("start "+userw)
  8. Create a desktop shortcut for this .py file.
  9. When you double click it on your widows desktop it will run your python app..
  10. Only inconvenience is that you need two files to run each program. But not a big deal right?
How To Hide A Password In A Python Program So It Cannot Be Accessed. 
  1. Create a temporary Python File named and 
  2. Store it on a private disc or USB storage device.
  3. Have it create if does not exist an sql-3 database named private_keys.
  4. Have it create a table holding your passwords and several keys matching functions in your app.
  5. Have it to allow you to enter or change passwords and keys.
  6. Lastly have every database connection or transaction using a SELECT statement require a managers passkey.
  7. Delete this python file after loading it into the users computer or any running the app.
  8. Now your python app is secure and no one can read the database.db file to get your password.
  9. And the python app cannot run or execute without the correct password.
  10. Have another database hold several keys also for multiple functions in your apps.
  11. Now you can Obfuscate your python program and unless the hacker knows the actual database table names cannot access or correctly run your Python App.  
  12. They can read your program but cannot read or access any of your apps stored keys passwords and or stored data created by the app without major knowledge of python programming.
Who cares if they can read your program. Without those keys and passwords no data can be seen and most employees running business IT apps you create using Python cant understand this. Now if you are developing critical Banking software then you will need the following:
  1. In your Windows7-10 computers or workstations place your working python edition and python files and programs into the Super User the Main Admin.
  2. Next Create a Link file named that uses "import os" to run your app.
  3. This will allow you to run anything without needing a WINDOWS.EXE file
  4. Now add it to the desktop.
  5. Give this file Public Permission Status by right clicking and setting the windows users to execute only but both read and write to deny. 
  6. Now log out your windows admnin then log it back to the windows user.
  7. Now both your Python file and python version cannot be viewed but the app is allowed to run by windows permissions.
There are major security advantages to Windows and this is one of them.

No comments:

Post a Comment