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. .NET (Core and Framework)
  4. Lock the USB Pen drive

Lock the USB Pen drive

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharp
4 Posts 4 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.
  • K Offline
    K Offline
    Khanna Gaurav
    wrote on last edited by
    #1

    I am looking to lock my usb pen drive. It should ask for password when i try to open the file in the usb pen drive. Is there any way I can do this using vb.net or c#.

    H A D 3 Replies Last reply
    0
    • K Khanna Gaurav

      I am looking to lock my usb pen drive. It should ask for password when i try to open the file in the usb pen drive. Is there any way I can do this using vb.net or c#.

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      I do not know a programmatic way to do what you want. Someone else may come along who does, but in case not: 1) TrueCrypt has a tutorial here[^] on how to do it with their software, which I believe is free. 2) Zip the confidential data in a password protected *.zip file. There are several free Zip Libraries for .NET. (google) 3) Get a U3 enabled drive such as this[^] one which comes with security enabled. The link is a UK one, but it is the drive that you should look at.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      1 Reply Last reply
      0
      • K Khanna Gaurav

        I am looking to lock my usb pen drive. It should ask for password when i try to open the file in the usb pen drive. Is there any way I can do this using vb.net or c#.

        A Offline
        A Offline
        annathor
        wrote on last edited by
        #3

        use the cryptography namespace to encrypt the file on the pen-drive?

        1 Reply Last reply
        0
        • K Khanna Gaurav

          I am looking to lock my usb pen drive. It should ask for password when i try to open the file in the usb pen drive. Is there any way I can do this using vb.net or c#.

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

          There is no method to do with without writing an extension to NTFS, which you can't do in VB.NET or C#.

          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
          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