Results 1 to 11 of 11

Thread: Create a USB lock code!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Talking Create a USB lock code!!

    Is there anybody know how to create a code that can be put into a USB flash Driver and generate a encrypt code so we can lock that USB. For example if I have a USB flash Driver and I want nobody knows what do I have inside it even if they found it.

    I already knew the code that can make the VB complied code auto run just like when you insert your CD/DVD into your CD/DVD player.

    Another things, this is the code for you if the person that entering password but 3 times wrong then all files inside the usb will be auto delete

    Code:
    Public Sub DeleteAllFiles(ByVal strFolderSpec As String)
    
    On Error GoTo Handler
    
    Dim oFs As New FileSystemObject
    Dim oFolder As FOLDER
    Dim oFile As File
    
    If oFs.FolderExists(strFolderSpec) Then
    Set oFolder = oFs.GetFolder(strFolderSpec)
    On Error Resume Next
    For Each oFile In oFolder.Files
    oFile.Delete True 'setting force to true
    'deletes read-only file
    Next
    End If
    
    Exit Sub
    
    Handler:
    MsgBox Err.description, vbCritical, "Error " & Str(Err.Number)
    
    End Sub
    Last edited by phoanglong; Mar 18th, 2007 at 08:40 PM.

  2. #2
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Create a USB lock code!!

    It has been invented it called a U3
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Re: Create a USB lock code!!

    Thank you for advertised that product for me, but it is not what i'm looking for. I'm trying to find some thing that can be make by ourself not other product.

    Cheers,

  4. #4
    Junior Member
    Join Date
    Feb 2006
    Posts
    20

    Re: Create a USB lock code!!

    First of all, we will need to confirm if windows will auto-run any files on a USB drive. In case of CD-DVD drive, it does. For USB i am not sure. If windows does not run any files automatically when it first detect it, probably it is impossible to so call lock the USB within USB itself.

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Create a USB lock code!!

    What you're looking to do can be done. It can't easily be done in VB. You might want to rethink things and use an existing product, like truecrypt. It can turn most of the drive into what looks like a single file, even if someone gets the password.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Re: Create a USB lock code!!

    Quote Originally Posted by ishtarsg
    First of all, we will need to confirm if windows will auto-run any files on a USB drive. In case of CD-DVD drive, it does. For USB i am not sure. If windows does not run any files automatically when it first detect it, probably it is impossible to so call lock the USB within USB itself.
    if you look at U3 website and goes to its demo, u can see that when the guy plugged in the usb, usb auto ru the program and ask for paassword. so it can be done but we just don't know the code yet..

    Al42: sorry i tried to look up http://www.truecrypt.org/ but it didn't work. Could you please recheck the link for me please!

    Thank you very much.

  7. #7
    Addicted Member kewakl's Avatar
    Join Date
    Oct 2006
    Location
    between keyboard and chair
    Posts
    220

    Re: Create a USB lock code!!

    the site is not working for me, either.

    in the meantime, you can read the truecrypt wiki to catch up on the background.

    I tried SourceForge.net, but it seems that what they have are links to truecrypt.org

    The download from SourceForge fails without error message.
    Do not use if shrinkwrap is broken or missing!
    I'm learning how to fish, too!

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Create a USB lock code!!

    That's the only URL I can find for the program, so I put the zip on my site for download. http://www.Webdingers.com/truecrypt-4.2a.zip. It should download directly from there.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  9. #9

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Re: Create a USB lock code!!

    thank you very much, the program's running perfectly good. Everything fine.

    Cheers

  10. #10
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Create a USB lock code!!

    The original site appears to be back with a new version dated yesterday afternoon. (That's probably why the site was down.)
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  11. #11

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Re: Create a USB lock code!!

    yeah, i got it today as well.. Thank you very much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width