10
Contributors
12
Replies
15
Views
12 Years
Discussion Span
Last Post by arpit56
Featured Replies
  • 2
    Narue 5,707   7 Years Ago

    [B]>Might the sir be needing anything else? [/B] For future reference, please be aware that email addresses in posts are against the rules and extremely likely to be removed by the moderators. If you quote the email address, that doubles the work required to clean up the mess because the … Read More

2

hi please clear your question do you want this in windows xp or in linux?
well for xp-control panel-user acoounts-and from there u can change your password or create it

0

how can we create a password and change the password?
thank you!!

i want to do the program with visual basic c++

0

What kind of passwords are you wanting to create? What are you wanting to use the passwords for?

Also, Visual Basic and Visual C++ are two different programs. I'm assuming you mean Visual C++?

0

What kind of passwords are you wanting to create? What are you wanting to use the passwords for?

Also, Visual Basic and Visual C++ are two different programs. I'm assuming you mean Visual C++?

yes is the visual c++

1

I think you can use Access database to store the passwords and use ADO controler to operation the database.

1

Hello,

If he wants a password to get into his program, he could control it with the OS, or he could wriite/use an encryption module to prompt the user for a password, and then write the encrypted string to a file. Then, when access time comes around, have him read in the value, and then do a compare to see if they match or not.

This can be done. If security is not all important, and this is just an exercise, or proof-of-concept type of thing, you can store the password in clear text. Nothing more than a a file open -- read -- compare exercise.

Christian

-1

i also need the code i have realy tried to do myself but i m new so i feel very difficulty plz send me at
<<snipped e-mail>>

Edited by Nick Evan: snipped e-mail

0

i also need the code i have realy tried to do myself but i m new so i feel very difficulty plz send me at
<<snipped e-mail>>

Might the sir be needing anything else?

Edited by Nick Evan: snipped e-mail

2

>Might the sir be needing anything else?
For future reference, please be aware that email addresses in posts are against the rules and extremely likely to be removed by the moderators. If you quote the email address, that doubles the work required to clean up the mess because the mod has to edit both the original post and the quote in your post. So please snip judiciously if you must reply to posts that break the rules.

Edited by Narue: n/a

0

@Neithan:

First: What Narue said.
Second: A meaningless bump like this (begging for code) will be deleted by me. By replying to this bump, you give me 2 choices:
1. Leave them both (as in this case) and explain why you shouldn't do this
2. Delete them both which also costs me extra time.

So please just press the 'flag bad post' button on the post and save me some time :)

0

>Might the sir be needing anything else?
For future reference, please be aware that email addresses in posts are against the rules and extremely likely to be removed by the moderators. If you quote the email address, that doubles the work required to clean up the mess because the mod has to edit both the original post and the quote in your post. So please snip judiciously if you must reply to posts that break the rules.

Yes, i missed it. Sorry!

0
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib> // for exit(1);

using namespace std;


void Login();

int main()
{
	Login();
	return 0;
}

void Login()
{
	char login_un[50], login_pw[50], username[50], password[50];
	int c;
	ifstream uin("user.txt");
	ifstream pin("pass.txt");
	
	cout<<"Main\n\n"
		<<"(1) Login\n"
		<<"(2) Quit\n";
	cin>> c;
	
	
	
	if (c==1)
	{
		uin.getline(username, 50);
		while (strcmp(login_un, username) !=0)
		{
			cout<<"Username: ";
			cin.getline(login_un, 50);
			if (strcmp(login_un, username) ==0) break;
			else
				cout<<"\nInvalid Username.\n";
		}
		
		pin.getline(password, 50);
		while (strcmp(login_pw, password) !=0)
		{
			cout<<"\nPassword: ";
			cin.getline(login_pw, 50);
			if (strcmp(login_pw, password) ==0) break;
			else
				cout<<"\nInvalid Password\n";
		}
		
	}
	
	else if (c==2)
	{
		cout<<"Quitting\n";
		exit(1);
	}
	return;
}

Edited by Narue: Added code tags

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.