usbarmory / interlock

INTERLOCK - file encryption and HSM front-end
Other
295 stars 46 forks source link

Ability to decrypt and download file without creating decrypted file on disk #48

Closed usmansaleem closed 2 years ago

usmansaleem commented 3 years ago

Hi,

At the moment, the decrypt operation creates a decrypted file alongside encrypted file. This results in following issues:

Suggestion

Decrypt and download in one call without creating the file contents on disk. The decrypt call should return error if it is unable to decrypt the contents instead of returning 0 bytes file.