2 Replies - 852 Views - Last Post: 24 February 2010 - 12:24 PM

#1 Ex-Rov  Icon User is offline

  • New D.I.C Head

Reputation: -6
  • View blog
  • Posts: 7
  • Joined: 24-February 10

Hai i want to share with you my Folder password protector

Posted 24 February 2010 - 12:17 PM

Hai, i want to share with you little code i have made in my C++ experience.
This code will porotect your folders, not 100% it is still can hacked, but
you can hide in some ways the folder.
Code:
// Floder PassWord.cpp : main project file.
// MADE BY EXROV ONLY \\
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace System;
using namespace std;
int main(){
	string password="example"; // not must to be example.
	cout<<"Please enter the password to the Folder:documents \n";
	cin >> password;
	if (password=="text"){ //Change text to your password!
		cout<<"Geting in \n";
		system("start c:\documents");
                // change c:\documents to your folder location!
	}
	else {
		cout<<"Wrong Password! \n";
		system("EXIT");
	}
}

hope i helped you.
DOWNLOAD CODE:
http://www.sendspace.com/file/ua4jhc
if there errors tell me please i will help you.
Exrov.

Is This A Good Question/Topic? 0
  • +

Replies To: Hai i want to share with you my Folder password protector

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1639
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Hai i want to share with you my Folder password protector

Posted 24 February 2010 - 12:19 PM

Moved to Share Your Project :)
Was This Post Helpful? 0
  • +
  • -

#3 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: Hai i want to share with you my Folder password protector

Posted 24 February 2010 - 12:24 PM

I am not really sure how this is helpful to anyone... I mean thanks but this is not security at all. Neat to impress you kid sister maybe... but not really valuable as a program in general.

First off, passwords should never be hard-coded into a program. Anyone can just open the program in a hex editor and read the password. Generally passwords are saved as a cryptographic hash and only the encrypted versions are ever compared. This makes it very difficult to determine the password.

Secondly, this may launch a window to the document, but since it is not tied into the OS at all anyone can just browse to the folder. You may wish to look into writing a shell-extension if you want to make a password-protected folder.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1