i need some idea for creatin a encryption program can any one help!?
i need to create the program in java or c++ so need to create a logic for it
this encryption prog should automatically encrypt the document n should decrypt it only if the givien conditions such as the password are fulfilled !
plz help !
i need some idea for creatin a encryption program can any one help!? i
Share
I agree with fielding. in case you want to do your homework, I think it’s OK to use XOR encryption:
Java Sample Code:
you may want to start the decryption process only if the correct password entered, then you should somehow store the hash of decryption password on the encrypted file.
for example your encrypted file may look like this:
[MD5 HASH OF PASSWORD][Encrypted Data]
then compare the entered password hash with the one you have saved, if they’re identical start decryption process.