I try to understand how I can store secrets in a xamarin forms project.
I have a web api core as a backend and a xamarin forms app as a frontend.
I am trying to code facebook authentication with Xamarin.Auth and I need to pass secret key to my app..
My thinking:
- Store in the frontend: I could create a config file and encrypt it but the decryption will be in my source code and by decompiling and reflexion the hacker could retrieve the decryption source code and decrypt the secret key.
2: Store in the backend: I could store the keys in the backend but by sniffing requests sent a hacker could retrieve my secret keys.
Then what is the solution? How can I do it?
Thanks,