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. Visual Basic
  4. Make Pen drive password protected.

Make Pen drive password protected.

Scheduled Pinned Locked Moved Visual Basic
tutorial
3 Posts 3 Posters 1 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.
  • G Offline
    G Offline
    Gagan 20
    wrote on last edited by
    #1

    Hi all. I want to make my pen drive password protected so that each time when I insert my pendrive it will ask for a password to access pen drive. Suggest me how to do this. Thanks. Gagan

    D S 2 Replies Last reply
    0
    • G Gagan 20

      Hi all. I want to make my pen drive password protected so that each time when I insert my pendrive it will ask for a password to access pen drive. Suggest me how to do this. Thanks. Gagan

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You cannot do it in VB.NET or managed code. This requires writing an extension to NTFS. You're not actually password protecting the contents of the drive. The "drive" will be an encrypted file that is NOT protected on the normal drive. The contents of the file will be what your extension exposes as part of the file system. All I/O has to go through your extension to be encrypted/decrypted in and out of your file. Basically, your making an encrypted .ZIP file and exposing it through an NTFS extension.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      1 Reply Last reply
      0
      • G Gagan 20

        Hi all. I want to make my pen drive password protected so that each time when I insert my pendrive it will ask for a password to access pen drive. Suggest me how to do this. Thanks. Gagan

        S Offline
        S Offline
        Steven J Jowett
        wrote on last edited by
        #3

        I've been experimenting with TrueCrypt[^]and looks good to me, so far.

        Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

        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