kingofthering16
Posts: 1
Joined: Mon Feb 11, 2019 1:19 pm

Completely Password protect Raspberry Pi Python Program

Mon Feb 11, 2019 1:23 pm

Good morning everyone,

I am trying to protect a program that I wrote on the raspberry pi. Yes, I can go to the raspi-config screen to set password, but someone can easily remove the sd card, plug it into a microsd reader into another pi and access all my files on it. Is there a way that I can prevent this from happening? Maybe adding a password protection on a folder of some sort? Any suggestions or ideas are appreciated.

Thanks

User avatar
B.Goode
Posts: 8256
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Completely Password protect Raspberry Pi Python Program

Mon Feb 11, 2019 1:57 pm

Welcome to the Raspberry Pi forums.

The consensus from many prior discussions of this topic is that what you seek is not easily or reliably possible, save with the addition of additional hardware.

mattmiller
Posts: 2100
Joined: Thu Feb 05, 2015 11:25 pm

Re: Completely Password protect Raspberry Pi Python Program

Mon Feb 11, 2019 1:57 pm

There have been MANY MANY posts on this subject.

Summary of answers - no practical, economic solution exists

Aydan
Posts: 689
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: Completely Password protect Raspberry Pi Python Program

Mon Feb 11, 2019 2:01 pm

A LUKS encrypted container will protect against accessing files from the SD card, but it is still not impossible to get to the data. But the resources and knowledge needed to access the data probably makes it safe enough for your use case.

Regards
Aydan

wildfire
Posts: 528
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: Completely Password protect Raspberry Pi Python Program

Mon Feb 11, 2019 2:06 pm

kingofthering16 wrote:
Mon Feb 11, 2019 1:23 pm
someone can easily remove the sd card
Don't let them, physical security is just as important as remote security.
plug it into a microsd reader into another pi and access all my files on it.
It wouldn't even need to be a Pi
Is there a way that I can prevent this from happening? Maybe adding a password protection on a folder of some sort? Any suggestions or ideas are appreciated.
If any black hat can gain physical access to your card then they also have access to your Pi, in which case all bets are off. There are things you can do to make things more difficult for them but security by obscurity is easily broken.
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

Return to “General discussion”