Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AES encryption removes original file on disk #15

Open
eze-kiel opened this issue Nov 25, 2020 · 1 comment
Open

AES encryption removes original file on disk #15

eze-kiel opened this issue Nov 25, 2020 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@eze-kiel
Copy link
Owner

eze-kiel commented Nov 25, 2020

Using --aes with -f removes the original file on the sender's disk.
It does not affect encrypted folders (with -F)

@eze-kiel eze-kiel added the bug Something isn't working label Nov 25, 2020
@eze-kiel eze-kiel changed the title AES encryption remove original file on sender disk AES encryption removes original file on sender disk Nov 25, 2020
@eze-kiel eze-kiel changed the title AES encryption removes original file on sender disk AES encryption removes original file on disk Nov 25, 2020
@eze-kiel eze-kiel added the wontfix This will not be worked on label Nov 25, 2020
@eze-kiel
Copy link
Owner Author

This bug happens only when the same machine is sending and receiving the file. The block of code which responsible of this is in cmd/get.go:

decryptFile(string(bytePassword), output)
os.Remove(output)

where output is the name of the file originally downloaded. It should not happen if the flag -o is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant