| | |
Password Guessing + Accessing command + writing to a file
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jul 2008
Posts: 45
Reputation:
Solved Threads: 1
•
•
•
•
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 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]
•
•
Join Date: Nov 2007
Posts: 390
Reputation:
Solved Threads: 39
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!
![]() |
Similar Threads
- Writing to file (Java)
- Writing to File in Client/Server app (Java)
- writing to file (Python)
- writing to a file (C++)
- _popen not allowing writing to process (C++)
- Reading, Writing and Creating a File (C)
- DOS command for password protecting Files and Folders (IT Professionals' Lounge)
- Writing in a file (C++)
- writing to a file (Java)
Other Threads in the C++ Forum
- Previous Thread: creating a .txt file in c++
- Next Thread: System Resource Manipulating Script.
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings struct temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





