Step 1 : create one folder
Step 2 : create one text document with any name ( Ex: secure.txt )
Step 3 : Copy the given code and paste it in your file
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== ENTER YOUR PASSWORD HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
Step 4 : in above code, enter your password at "ENTER YOUR PASSWORD HERE"
Step 5 : 'Save As' this with .bat extension ( Ex: secure.bat )
Step 6 : remove that original file
Step 7 : Now the file like given below img 1
img 1 |
Step 8 : If u double click on this, it shows 'private' folder
Step 9 : in this folder,copy your documents ( Ex: data.txt )
step 10: double click on secure.bat then type 'Y' press 'Enter'. the folder disappear.
step 12: enter your password as you are given and press 'Enter'
step 13: it shows private folder. your documents are existed in it.
Advantages:
- It is hides the documents
- these type of securities used in offline war deployment
Disadvantages:
- It can be decode easily with logical effort
- It is not provided 100% security
No comments:
Post a Comment