samuel-lucas6 / Kryptor

A simple, modern, and secure encryption and signing tool that aims to be a better version of age and Minisign.
https://www.kryptor.co.uk
GNU General Public License v3.0
414 stars 33 forks source link

Corruption Verification #51

Closed KahinaD closed 1 year ago

KahinaD commented 1 year ago

Description

This not so much a bug as it is me trying to figure out what went wrong in the decryption. I was decrypting my files so I could update from v3.0.4 to 4.0.1 when I found I wasn't able to decrypt about half the files. They just throw this error:

Deriving encryption key from password... Decrypting filename.kryptor => filename... filename.kryptor - Error: CryptographicException - Unable to decrypt the file.

I am using the same keyfile as it worked on the other files but there were a few that it wouldn't work with. I figure it's just bitrot or something. I had the files on a USB that was only accessed weekly running NTFS. Is there anything I can do to recover the files or at least make them decryptable (hex editor and screwing with the text maybe, idk)? I can remake the files if need be so there's no data loss, just wondering if there's anything I can do in order to not have to remake them.

I am on Windows 10, 21H2 (though I doubt this to be an OS issue, can try in Linux if necessary).