•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 427,222 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,273 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 392 | Replies: 7
![]() |
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,876
Reputation:
Rep Power: 11
Solved Threads: 193
"I'm not dumb. I just have a command of thoroughly useless information."
- Calvin, of Calvin and Hobbes
- Calvin, of Calvin and Hobbes
>i wanted to make it restart the computer if the wrong passwords entered
That's one of the worst ideas I've ever heard. What if other users are logged onto the system? Are you going to kill their session just because somebody fat-fingered a password? What if this program is installed on a server?! If the whole idea is to make one person wait for the computer to reboot so that brute forcing the password would take a painfully long time, why don't you just lock the account for X minutes?
If this is the extent of your security design skills, I highly recommend you not try to make an ad hoc system. Instead build on an existing and proven design, because all you're likely to do is create a huge mess that isn't nearly as secure as you think.
That's one of the worst ideas I've ever heard. What if other users are logged onto the system? Are you going to kill their session just because somebody fat-fingered a password? What if this program is installed on a server?! If the whole idea is to make one person wait for the computer to reboot so that brute forcing the password would take a painfully long time, why don't you just lock the account for X minutes?
If this is the extent of your security design skills, I highly recommend you not try to make an ad hoc system. Instead build on an existing and proven design, because all you're likely to do is create a huge mess that isn't nearly as secure as you think.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
>ok but the main thing is its not anyones but mine
>the computer would only be used by me
>and the program would be made just incase my brother or sister try to go on
The guy who wrote DOS didn't expect Microsoft to buy it and turn it into a huge product. Rationalizing poor designs and sloppy code with "but it's only for me" is where a lot of the field's biggest headaches come from.
>the computer would only be used by me
>and the program would be made just incase my brother or sister try to go on
The guy who wrote DOS didn't expect Microsoft to buy it and turn it into a huge product. Rationalizing poor designs and sloppy code with "but it's only for me" is where a lot of the field's biggest headaches come from.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,876
Reputation:
Rep Power: 11
Solved Threads: 193
You still haven't indicated what OS you are using, but doesn't it do that for you anyway? On each one of Windows, Mac, and Linux you can set yourself a secure password and disable all other user accounts but yours.
That way, only the person who knows the password (you) can log onto your laptop. (Which is the same thing you are stated as doing.)
If it is just for leaving it lying around for a moment, you can always trigger the screensaver, which again on each system mentioned can password-protect the computer.
If you want a quick script to trigger the screensaver on demand I can give you one. There are also programs online that will do it if you move the mouse into a corner of the display or something like that...
That way, only the person who knows the password (you) can log onto your laptop. (Which is the same thing you are stated as doing.)
If it is just for leaving it lying around for a moment, you can always trigger the screensaver, which again on each system mentioned can password-protect the computer.
If you want a quick script to trigger the screensaver on demand I can give you one. There are also programs online that will do it if you move the mouse into a corner of the display or something like that...
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
airplane almost throwing my laptop out of a window apple asus battery blackberry command prompt consumer dell dep explosion flash hard drive hardware internet laptop linux lithium-ion macbook memory mobile news olpc pc pc world portable power recall repair safety sandisk sms sony technology umpc vista warranty wii wiimote windows xp
- HP Compaq nx9005 keeps restarting (Troubleshooting Dead Machines)
- xp keeps restarting (Troubleshooting Dead Machines)
- Toshiba Laptop will not Boot (Troubleshooting Dead Machines)
- Problem with Inspiron 6000 Dell laptop (Windows NT / 2000 / XP / 2003)
- Desperate Plea For Help!! (Troubleshooting Dead Machines)
- Presario 2100 AMD Laptop won't POST (Troubleshooting Dead Machines)
- Upgrading to XP - Laptop Display Issue (Windows NT / 2000 / XP / 2003)
- My laptop sounds like a chipmunk (Windows NT / 2000 / XP / 2003)
- Can't run Laptop (Windows NT / 2000 / XP / 2003)
Other Threads in the C++ Forum
- Previous Thread: Database saving problem and windows forms
- Next Thread: getting character input with one keystroke



Linear Mode