RSFP (Really Simple Folder Protector)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

RSFP (Really Simple Folder Protector)

Post by GeoTrail »

RSFP (Really Simple Folder Protector)
RSFP is a really really simple way of protecting a folder from prying eyes. I didn't write it to be useful, mostly to test an idea I got. It isn't very secure either, specially from someone with some Windows experience. But might be enough to protect from people with less then average computer skills.

Just select the Protect Folder setting, select the folder you want to hide and hit the protect button. To check if it's really hidden, try browsing to the selected folder with Explorer and see if you can access it ;)

Image

Download here:
Image
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Works only with explorer, i only use TotalCommander :wink:

greetings
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

Quite interesting, how did you implement the redirection?
Windows 7 & PureBasic 4.4
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

ts-soft wrote:Works only with explorer, i only use TotalCommander
Yeah I know, it's just the way Explorer works ;)

milan1612 wrote:Quite interesting, how did you implement the redirection?
Well, it's not really a redirection. It's more like using Explorer's shortcut handling towards the Control Panel ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

I'm sorry to report that your program has a few problems. :oops:

First: I get this error message with one particular folder:

Code: Select all

---------------------------
Protected Folder
---------------------------
Selected folder could NOT be protected!
---------------------------
OK
---------------------------
The folder is named "E:\Program Files\0-MyApps\~BUGS~\zxcvg8i" (don't ask why).

Second: If you browse for a folder, then protect it, and then select
unprotect and click the "Protect" button to unprotect it, the app says:

Code: Select all

---------------------------
Protected Folder
---------------------------
The selected folder has already been protected!
---------------------------
OK
---------------------------
It seems you have to browse to the protected folder name and select that,
before you can unprotect. A bit inconvenient.

Third: The protection is extremely weak, because all one has to do is
rename the folder and all contents are accessible. You need to think
of something stronger. The code in this post is a good starting point:

http://www.purebasic.fr/english/viewtopic.php?t=23493
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

truecrypt.org
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

PB wrote:Second: If you browse for a folder, then protect it, and then select
unprotect and click the "Protect" button to unprotect it, the app says:

Code:
---------------------------
Protected Folder
---------------------------
The selected folder has already been protected!
---------------------------
OK
---------------------------

It seems you have to browse to the protected folder name and select that,
before you can unprotect. A bit inconvenient.
Yeah, I was thinking of adding the feature to allow unprotecting right after protecting 'cause I noticed that problem myself but didn't think it would be an issue in normal use.
PB wrote:Third: The protection is extremely weak, because all one has to do is
rename the folder and all contents are accessible. You need to think
of something stronger. The code in this post is a good starting point:

http://www.purebasic.fr/english/viewtopic.php?t=23493
Didn't you read this
It isn't very secure either, specially from someone with some Windows experience.
hehehe
It's just something I knocked up in a few minutes to test an idea.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

I surmise that the program does not work because of a slice of the directory name
E:\Program Files\0-MyApps\~BUGS~\zxcvg8i" (don't ask why).
the " ~ " symbol (or tilde) is nominally NOT a useable folder name(ok I have no idea whay that exists in my brain, or even if it is true!). I am not sure if it should be a directory name either... (the same parenthesis excerpt applies here too!)

Just opinion... I have the extereme advantage of not knowing anything about what I am talking about... this gives me total freedom! :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

PB, what Windows version are you running?
I have tried the program on a folder I named zxcvg8i inside a ~BUGS~ folder and that worked fine here. XP SP2
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Apparently, these are the illegal chars to use in file names

\\/:*?\"<>|

and directories (some of them will be obvious to most of you.

I've tested the tilde and XP seems to have no trouble using it in dir names here.

The following is an interesting reference.

http://threebit.net/mail-archive/carbon ... 01314.html
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

You can definitely use ~ in a file or folder name; it's not an illegal character.
I have Windows XP Pro with Service Pack 2. Interestingly, if I create the
same folder path on my C drive (instead of E) then it works just fine.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

That's strange. Might it have something to do with NTFS security?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Don't think so, because I can protect other folders on my E drive; just not
that one (so far). I haven't tested it further. Anyway, good job with it as a
concept thing, but as you initially said (which I missed), it's not for serious
protection. :)

And TrueCrypt is not an alternative (IMO) as it takes too long to encrypt
a folder with over 4000 files, or with large file sizes (4 GB). Too impractical.
In these days of large hard drives and file sizes, encryption is obsolete.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply