I'm making a windows app with c# and I want the user of this app to be able to open files on another pc but I only want him to be able to open those files from the app.
The user gets permission to open files or not by his SQL user permissions on a table that contains the files info such as path and name.
I tried to share the folder that contains the files but now the user will be able to access the files without using the app if the user has the username and password of the shared folder, so I thought of encrypting the username and the pass of the shared folder but now I have to store the keys somewhere that is secure.
Any ideas?