Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Folder 'Locking' Strategies?

Folder 'Locking' Strategies?

Scheduled Pinned Locked Moved C#
securityhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Trapper Hell
    wrote on last edited by
    #1

    I have recently been working on a project intended to lock (and / or hide) directories in Windows in some manners. Now the problem isn't actually coding it, but some strategies that I might use in order to achieve this.. What to look for? ((What I have currently implemented are simply the rename functions of folders in order to make them look like Control Panel / My Computer etc etc. And then the attributes (setting them as hidden / system / read-only)... I also had in mind 'zipping' a folder or a similar technique with a password or encryption from program-side or maybe adding an image to the 'zipped' file in order to make it look more 'innocent' but I don't know about that yet.)) Preferably it's something that can be achieved quickly (such as the attributes technique) rather than 'zipping' which takes quite some time - according to file size... Thanks!

    J G 2 Replies Last reply
    0
    • T Trapper Hell

      I have recently been working on a project intended to lock (and / or hide) directories in Windows in some manners. Now the problem isn't actually coding it, but some strategies that I might use in order to achieve this.. What to look for? ((What I have currently implemented are simply the rename functions of folders in order to make them look like Control Panel / My Computer etc etc. And then the attributes (setting them as hidden / system / read-only)... I also had in mind 'zipping' a folder or a similar technique with a password or encryption from program-side or maybe adding an image to the 'zipped' file in order to make it look more 'innocent' but I don't know about that yet.)) Preferably it's something that can be achieved quickly (such as the attributes technique) rather than 'zipping' which takes quite some time - according to file size... Thanks!

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Trapper-Hell wrote:

      in order to make it look more 'innocent'

      I know exactly what you mean! ;) This is really a function of the filesystem, not a specific program per se. For example, NTFS allows you to protect directories. You could, however, encrypt all files in a directory from your program. There are lots of classes which deal with cryptography in the framework.

      1 Reply Last reply
      0
      • T Trapper Hell

        I have recently been working on a project intended to lock (and / or hide) directories in Windows in some manners. Now the problem isn't actually coding it, but some strategies that I might use in order to achieve this.. What to look for? ((What I have currently implemented are simply the rename functions of folders in order to make them look like Control Panel / My Computer etc etc. And then the attributes (setting them as hidden / system / read-only)... I also had in mind 'zipping' a folder or a similar technique with a password or encryption from program-side or maybe adding an image to the 'zipped' file in order to make it look more 'innocent' but I don't know about that yet.)) Preferably it's something that can be achieved quickly (such as the attributes technique) rather than 'zipping' which takes quite some time - according to file size... Thanks!

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Trapper-Hell wrote:

        What I have currently implemented are simply the rename functions of folders in order to make them look like Control Panel / My Computer etc

        Deception is not a safe protection method...

        Trapper-Hell wrote:

        And then the attributes (setting them as hidden / system / read-only)...

        There is no read-only attribute on folders.

        Despite everything, the person most likely to be fooling you next is yourself.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups