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

🐛 Bug: Incorrect decrypted file name for duplicated files when in the same location. #28

Closed sh-dv closed 2 years ago

sh-dv commented 2 years ago

Description

Situation : I have a file called Document.txt, i encrypt this file and have the new file named Document.txt.kryptor, then I encrypt the same Document.txt file and get another encrypted file called Document.txt (2).kryptor. When trying to decrypt the second file Document.txt (2).kryptor everything works except the new decrypted file is called Document.txt (2). this file won't open unless you rename it (remove brackets) to Document.txt.

This situation only happens when there is already another file having the same name.

Platform Info

samuel-lucas6 commented 2 years ago

Hi @sh-dv,

Thanks for the great find! This unique rename implementation has been a bit of a hassle. I'll take a look at your pull request.