954,136 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to create a password and change the password?

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

leefuren
Newbie Poster
3 posts since Aug 2004
Reputation Points: 12
Solved Threads: 0
 

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

apurva agarwal
Newbie Poster
13 posts since Aug 2004
Reputation Points: 14
Solved Threads: 0
 
how can we create a password and change the password? thank you!!


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

leefuren
Newbie Poster
3 posts since Aug 2004
Reputation Points: 12
Solved Threads: 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++?

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

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++

leefuren
Newbie Poster
3 posts since Aug 2004
Reputation Points: 12
Solved Threads: 0
 

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

XianBin
Newbie Poster
24 posts since Aug 2004
Reputation Points: 15
Solved Threads: 0
 

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

kc0arf
Posting Virtuoso
Team Colleague
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
 

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
<>

sadi000011
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 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 <>

Might the sir be needing anything else?

neithan
Junior Poster in Training
75 posts since Oct 2009
Reputation Points: 12
Solved Threads: 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.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

@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 :)

Nick Evan
Not a Llama
Moderator
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
 
>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!

neithan
Junior Poster in Training
75 posts since Oct 2009
Reputation Points: 12
Solved Threads: 2
 
#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;
}
arpit56
Newbie Poster
1 post since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You