Example use case:
- User is going to download a file (either text/binary/zip) from a trusted website
- Provide the downloaded file to a program running on a Linux system
- Program running on Linux will verify if the file is downloaded from the trusted website
- If the file is downloaded from the trusted web, then the program processes the file else error
How do we validate if the file is downloaded from a trusted source?
I thought of generating some predefined text key and encoding it using the private key on the web and adding it to the file, and then the program reads the key from the file and verifies using the public key. If the predefined text matches file is from a trusted source.