New answers tagged file-encryption
The short answer is NO: you will not obtain identical ciphertexts from the same file encrypted using two different runs of a decent public key file-encryption software; their hash will not coincide. The longer answer (in theory): If you use a deterministic public key encryption scheme like textbook RSA, i.e., without randomized padding, then yes. If you ...
You should resort to digital signature to solve your problem. If RSA is used to generate digital signature, private key is first used to "decrypt" the file that you want to sign. The software can verify the "decrypted" file comes from you since it was "encrypted" using your public key.
It looks like what you are describing is comparable to IGE (Infinite Garble Extension) and especially biIGE mode of encryption. So I guess my question and the answer on my question here is of relevance.
You need to use different IV for every message you encrypt. Thus rather than the process: encrypt plaintext reverse the ciphertext continue encrypting (now from finish to start) You need to generate IV each time. I.e.: generate IV encrypt the plaintext using the IV store/send the ciphertext and the materials required to recreate IV The ...
Top 50 recent answers are included