473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Password change in C++

Hi guys. I am new member in this group. I am also new to Visual C++. I
am developing a new system. I have a password to enter the system. The
user should have a choice to change his/her password anytime. The
password should be 8 char ending with an #. Could someone help me &
show how it is done.

Jul 23 '05 #1
2 3016
ben
> Hi guys. I am new member in this group. I am also new to Visual C++. I
am developing a new system. I have a password to enter the system. The
user should have a choice to change his/her password anytime. The
password should be 8 char ending with an #. Could someone help me &
show how it is done.


For the whole thing, no. What a small and trivial part, yes. Which part?
Jul 23 '05 #2

"Sigi" <kk*******@yahoo.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi guys. I am new member in this group. I am also new to Visual C++. I
am developing a new system. I have a password to enter the system. The
user should have a choice to change his/her password anytime. The
password should be 8 char ending with an #. Could someone help me &
show how it is done.


What part do you need help with? What do you have so far?

Sounds like a homework assignment. I find it difficult to believe you're
developing an entire "system", but don't know how to have the user enter a
string. If it's not homework, then why make the password exactly 8
characters, and why add the # at the end? Those rules seem arbitrary, and
make the password less secure than a variable-length password.

Break the task into parts. First write a function that lets a user enter a
string. (Preferably, use std::string, unless you're required to use char
arrays for this.)

Then write another function that calls the first function, checks that it's
8 characters long plus the # at the end. If it doesn't meet those
requirements, have this second function loop, calling that first function
until the user gets it right. (You could provide some kind of special
keyword the user could enter that would cancel the operation, if desired.)

Finally, you'll need to write the "system" which allows the user to specify
that they *want* to change their password, including some way to store that
password (and I would assume some way to "log on" to the system in the first
place). But if this is homework as I suspect, you won't be writing that
part.

By the way, if you're wondering how to do like most password systems, and
show # or * characters instead of the characters the user is typing while
entering the password, you'll need to step outside standard C++ and use some
platform-specific features, since C++ doesn't provide facilities for that
kind of keyboard handling.

-Howard
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: arktikturtle | last post by:
Hi! I'm looking for a way to validate a password within PL/SQL. I want to write CREATE PROCEDURE change_password(old_password IN VARCHAR2) IS BEGIN -- check if old_password is correct... but...
1
by: Mindy Geac | last post by:
Hello, I'm seaching for the possibility to change Domain/User passwords. And a check for users if the password has to change with the first logon or when the password is expired. thanx, ...
2
by: MLH | last post by:
What's the simplest way to allow a user of an A97 app to change password?
10
by: Fabrizio | last post by:
(Sorry for the crosspost, but I really don't know which is the right newsgroup!) Hi all, I try to change the password to a user that as to change the password at first logon: try {
2
by: Drew Pawlik | last post by:
I am needing to write an application that will be used every month to automatically run queries on an Oracle database. But the password I need to log in to the database needs to be changed every...
5
by: scorpion53061 | last post by:
is it possible to set the database password that you can set in access for a database from a vb.net application?
0
by: GregS | last post by:
We have a client that has a very large number of users that will be connecting back to the domain via VPN only. The problem is that the communications vendor can not pass the password expiration...
2
by: J | last post by:
Hello. I apologize if this isn't the appropriate group for this question but I was wondering if it's possible to allow regular windows domain users to change their passwords through an .asp page? ...
1
by: eighthman11 | last post by:
Hi everyone: I created a custom toolbar called Password, so users can change their password. I used the Command "User and Group Accounts". I know the user can not change anything in the Tab...
2
by: bemytthm | last post by:
I just want to ask abt communicate with AD using ASP.net. I would want to ask you all to help me correct a problem like this: This is a code i use to change password on AD public bool...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.