943,719 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 1570
  • C++ RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
May 30th, 2009
1

Re: Password Guessing + Accessing command + writing to a file

Nah, a text file is fine, so long as you ensure than any modifying of the file will not be accepted, and an encryption is used. Saving it somewhere else will just make it slightly harder to find, but once it has been found... then what?
But if you are using text files in the first place then you can expect them to be found. Setting it to read-only would make it to where you couldn't edit them either, as for an encryption, yes, that would work. But it doesn't seem completely right to protect a password with a password, because what password would you use to protect that password, and for that one, and so on.

But yeah, I don't think that an encryption would need any such additional maintenance.

Also, that is why you make it pretty much impossible to find, make a series of folders with numbers in the name as well as in the filename, so the user will not know what name to search for, it could look like:

D:
--->foldnm[1003388]
------->foldnm[97643]
----------->filenm[0773].txt
------->foldnm[97378]
Reputation Points: 18
Solved Threads: 2
Light Poster
killdude69 is offline Offline
45 posts
since Jul 2008
Jun 2nd, 2009
0

Re: Password Guessing + Accessing command + writing to a file

Sorry, I meant I instead of we. I don't know why I typed that. The text file will be secure, but I'm not doing encryption. I'm making a folder and then renaming it so that it will act like the control panel when clicked upon.

That is my plan at least. Thanks for the help.

jdm
jdm
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
jdm is offline Offline
53 posts
since Jan 2009
Jun 2nd, 2009
0

Re: Password Guessing + Accessing command + writing to a file

To make it a more secure method, you could do a binary write to the file with the time of day (in clock ticks) that the file was written, the number of guesses that occured, and a strange binary combination of the two (AND with time of day + binary shift once left then XOR with time of day). This way if anyone tampers with the file, this coded number will not be correct, and is sort of a 'keyed' encryption. This will require a hex viewer to read in the binary data, as well as a fair bit of reverse engineering to guess the algorithm! Happy coding!
Reputation Points: 352
Solved Threads: 109
Master Poster
skatamatic is offline Offline
775 posts
since Nov 2007
Jun 2nd, 2009
0

Re: Password Guessing + Accessing command + writing to a file

Thanks for the help, but this program isn't going that far. It is meant to be a fun program, but certain areas like typing debug and getting the source code will have this. For the most part it is a fun app. Thanks for all of the help and suggestions. I appreciate it a lot.

Sincerely yours;

jdm
jdm
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
jdm is offline Offline
53 posts
since Jan 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: loop statement
Next Thread in C++ Forum Timeline: System Resource Manipulating Script.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC