rohsaurus / Cerberus

Cerberus is an application that allows you to seamlessly and easily encrypt files and share them without the need for a password!
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Decryption error Failed to decode data using encoding 'utf-8 #3

Closed rohsaurus closed 1 year ago

rohsaurus commented 1 year ago

Decryption for normal text files works, but when I tried using a .jpg, the decrypted file wasn't the same as the original. Need to investigate encryption and decryption to make sure bytes are the exact same and go from there.

rohsaurus commented 1 year ago

Update: There seems to be an issue with the encoding and decoding of the files with binary. Needs more investigation but seems to affect most files that are not plain text.

rohsaurus commented 1 year ago

It seems to work now after changing the whole encryption scheme. Needs further testing.