![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 10
Rep Power: 0
![]() |
file securing
i would like to create a program in c++ able to avoid anyone else to read files. I was researching and I think that i could use the CreateFile windows.h function in order to get the handle of every file to secure instead of encrypting them
If i get the handle of a file this way with RD/WR permissions,would i be able to block anyone else reading,writing or moving those files while my program is open? or has it any security threat? |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
How many files are we talking about here?
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Feb 2005
Posts: 10
Rep Power: 0
![]() |
I was thinking in every document but the authorized ones. This means that can be a huge number...
I suposse you ask it because of the memory it could use. I had not think about it, but i understand the problems that handling a huge number of files could cause... any other suggestion or did I understand the problem? |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
You could set security and permissions on entire directories or individual files.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Expert Programmer
|
Yeah if you wanted to block people open file handles and just make sure you specify the CreateFile flags which prevent file sharing... that is easy to do.. but once the handles are destroyed others will be able to get access to the files again.
It does not sound like cryptography is really what you want... you can encrypt the files, but other users can still modify the contents... it just mens that they will not be capable of interpreting the data within the files.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|