Lets say you have a program that asks the user for a password to proceed and the password that you check is in a text file, how do you encrypt that text file that has the password in it?
Lets say you have a program that asks the user for a password to proceed and the password that you check is in a text file, how do you encrypt that text file that has the password in it?
Why not use the seach button and seach for "encryption" this has been discusses soooooooooooooooooooooooo much lately its not even funny.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein
There are hundreds, maybe even thousands of encryption algos out there.
Easy way to do this is to add the password somewhere in the file, and encrypt it.
Simple encryption would be to use XOR encryption or pack the bytes together in a low high fashion or something
#define PACK16(b1,b2) (WORD)((b1<<8)+b2)
or something like that - easy to break, but....