You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple Python Template With Argument Parsing and Logging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I based this project off of Shutdown Raspberry Pi with a Single Button. I used the scripted approach only so there is no reference here to using the Boot Overlay method.
Encrypting/Decrypting Passwords in Python using External 'C' Function Call
Encrypting/Decrypting Passwords in Python using External 'C' Function Call
Introduction/Problem
I am deploying a stand-alone Raspberry PI based weather station and webcam. This will be visible, known and unattended for days at a time. I will be FTPing to a server and emailing daily status reports over security IP protocols. I was concerned about the unit potentially being stolen. Even in compiled Python text is still clear. There is also an ongoing project to decompile PYC files back to PY.
I posted in the Raspberry PI Forum on my challenge. Look there for some suggestions that were posted on approaches to prevent others from getting access to passwords.
In the end, I decided to use encrypted passwords. However, since at some time my Python 3.9 PYC program may be able to be decompiled, I decided to use a compiled 'C' lanquage decrypt function. I found it challenging in determining how to call and return strings between Python and C. Th