Jump to content

Any Idea How To Password Protect A Folder?


Recommended Posts

Yeah. I Want pass protect one of my folders, and not allow searching on it to, via the windows search.

EDIT::

Okay, would there be a way to do it with autoit?

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

You can set properties to hidden and windows search won't find it (depends on options, standard doesn't find it). Password protection, as far as i know is impossible. However: Hide the window, and your only way of opening is it is by typing the adres, so that's kind of a password.

Edit: You can also just encrypt your porn or something...

Edited by Manadar
Link to comment
Share on other sites

Then Id have to decrypt it :D, Well, basically, im paranoid, its my laptop, my mum doesnt know how to use a computer, and im always on it, but im still paranoid xD, Even though, she wouldnt care if I looked at pr0n, but yeah...

EDIT::

What pr0n :wacko:

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

Maybe something like this to protect a pr0n :D folder

#NoTrayIcon
Opt('WinTitleMatchMode',2); this is excludable

Global $pass1= "*Your Pass Here*" ;Change  this to your pass
Global $pass2, $done = 0

While 1
     If Winexists("AzKays Special Place") then ;name of folder here
          LockOut()
     Endif
Wend

Func LockOut
    Do
        WinMinimizeall()
        Winsetstate("Azkays Special Place", "", @SW_HIDE) ;Folder Name goes here too 
        $pass2 = InputBox("Protected", "Please Input Password to Access Folder.", "", "*M")
        If $pass2 = $pass1 then
            MsgBox(0, "Correct", "Correct Password")
            Winsetstate("Azkays Special Place", "", @SW_SHOW)
            WinMinimizeallUndo()
            $done = 1
        Else
            MsgBox(0, "Wrong", "Incorect Password, Try Again"
        Endif
    Until $done = 1
EndFunc

:wacko::D

It's not unbeatable by far,

but it will stop the semi-technilogically impared

Edited by Paulie
Link to comment
Share on other sites

You can always compress the folder with some took like 7zip which can be found via sourceforge.net and password protect the compressed file. Then delete your prOn folder and decompress the folder whenever you feel like it.

IVAN

Just don't forget your password

Edited by ivan
Link to comment
Share on other sites

Maybe something like this to protect a pr0n :D folder

#NoTrayIcon
Opt('WinTitleMatchMode',2); this is excludable

Global $pass1= "*Your Pass Here*" ;Change  this to your pass
Global $pass2, $done = 0

While 1
     If Winexists("AzKays Special Place") then ;name of folder here
          LockOut()
     Endif
Wend

Func LockOut
    Do
        WinMinimizeall()
        Winsetstate("Azkays Special Place", "", @SW_HIDE) ;Folder Name goes here too 
        $pass2 = InputBox("Protected", "Please Input Password to Access Folder.", "", "*M")
        If $pass2 = $pass1 then
            MsgBox(0, "Correct", "Correct Password")
            Winsetstate("Azkays Special Place", "", @SW_SHOW)
            WinMinimizeallUndo()
            $done = 1
        Else
            MsgBox(0, "Wrong", "Incorect Password, Try Again"
        Endif
    Until $done = 1
EndFunc

:wacko::D

It's not unbeatable by far,

but it will stop the semi-technilogically impared

^^, Works, except, once I put in the password, the folder pops up, then hides again and asks for the pass, because of the loop xD, I put in straight after the lockout in the loop, a ExitLoop, But, then, that wouldnt be good, because I would have to run it again
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

^^, Works, except, once I put in the password, the folder pops up, then hides again and asks for the pass, because of the loop xD, I put in straight after the lockout in the loop, a ExitLoop, But, then, that wouldnt be good, because I would have to run it again

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

Hi,

there are so many tools out there which do protect folders and files by passoword. Do you really want to do it with autoit again?

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

there are so many tools out there which do protect folders and files by passoword. Do you really want to do it with autoit again?

So long,

Mega

Yep, I dont like having lots of programs on my computer. Autoit is simple, 1 file, 300kb* The other things, are 3.5mb*

And, That code is complete, thats what I want, theres just the problem, once I put the password in, it accepts, shows the window, then the loop hides it again

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

When you encrypt the files through Windows you dont have to decrypt it to access it. Correct me if I'm wrong, but I'm pretty sure it just makes it so only the user that encrypts it can see anything in the folder. Put a password on your account, encrypt the folder, your done.

Link to comment
Share on other sites

Hmmm, try this. It will skip the lockout until you close the folder, then it will ask again when you try to reopen it.

;#NoTrayIcon
Opt('WinTitleMatchMode',2); this is excludable

$FolderName = "Azkays Special Place" ;name of folder here
Global $pass1= "password" ;Change  this to your pass
Global $pass2, $done = 0

While 1
    If Winexists($FolderName) then
        If $done = 0 Then
            LockOut()
        EndIf
    Else
        $done = 0
    Endif
Wend

Func LockOut()
    Do
        WinMinimizeall()
        Winsetstate($FolderName, "", @SW_HIDE)
        $pass2 = InputBox("Protected", "Please Input Password to Access Folder.", "", "*M")
        If $pass2 = $pass1 then
            MsgBox(0, "Correct", "Correct Password")
            Winsetstate($FolderName, "", @SW_SHOW)
            WinMinimizeallUndo()
            $done = 1
        Else
            MsgBox(0, "Wrong", "Incorect Password, Try Again")
        Endif
    Until $done = 1
EndFunc
Edited by bluebearr
BlueBearrOddly enough, this is what I do for fun.
Link to comment
Share on other sites

Didnt work, Same problem as before.

Ok heres one i wrote a long time ago, it was ment to stop people from opening Control panel and regedit, and it worked

I'll mod it to fit you needs:

#NoTrayIcon
opt("WinTitleMatchMode",2)

;*******Define Variables**********
Global $case = 0
Global $action = 0
Global $access_1 = 0
Global $foldername= "foo"; Edit this here
Global $pass="bob";and this
Global $done = 0
;*******Default Function******
;=============================
While 1
If WinExists($foldername) then
   If $access_1 = 0 Then
    $case = 1
Endif
Endif
;=============================
If $case>0 Then
    MyCase ($case)
    $case=0
EndIf
Wend

Func MyCase ($my_case)
Select
    Case $my_case = 1

WinMinimizeAll()
WinSetState($foldername, "", @SW_HIDE)
If $access_1 < 1 Then
Box()
$access_1 = 1
Endif
EndSelect
;****************************************
EndFunc

Func Box()
Do
     Global $passwd = InputBox("Enter Password", "Enter Password Here:", "", "*M")
     If $passwd = $pass then
          MsgBox(0, "Access Granted", "Correct Password.")
          WinMinimizeAllUndo()
          WinSetState($foldername, "", @SW_SHOW)
          $done = 1
     Else
          MsgBox(0, "Access Denied", "Sorry, Wrong Password Try Again.")
     Endif
Until $done = 1
EndFunc

The reason this is so much more complex is because it was ment to protect like 4 windows

but this should work

Edited by Paulie
Link to comment
Share on other sites

Ok, it's very simple. Like Ivan pretty much said. Right-click on your desktop, in the "New" section select compressed(zipped) folder, Put your "bad things" into the compressed folder and then delete them ( a copy is still in the compressed folder), encrypt the compressed folder. Whenever you feel a sudden urge to view your encrypted files, simply extract them ( it will ask for you encrypt pass upon extract). when your done viewing delete the extracted version and keep the encrypted one handy. Enjoy!

- Dan [Website]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...