I am creating a website using Django, my website will encrypt uploaded files and another user can then download the files unencrypted.
It's pretty straightforward encrypting in python (I am using the cryptography python library), but where do I store the encryption key?
I encrypt the files in case the database or source code has been compromised. Then I can't store the encryption key as a file or in the database.
Where can I store the encryption key?