❔ firebase private key help..?
what is the best way to protect firebase private key....
private const string filePath = @"privatekey.json";
how to convert it to string....
is obfuscation is god for it....or run on vps...?
8 Replies
Obfuscation is not secure, it wont protect against attackers who are even somewhat good
Try using a secret manager
simple, don't give your private keys to your users
What type of app are you building?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.c# application
that's like asking "what kind of boat are you building" and you answer "a boat"
I'm assuming you mean a desktop app. You can't secure the json identity, so likely you'd want to host he json identity on some web application, i.e. a web api for instance. From there, you can create a custom auth provider for firebase which sort of works in c# firebase libraries, but requires some additional custom code outside the firebase libraries ( this information is a couple years old ). It's really hard to find information about this, but I've got some old code lying about I can dig up, if this is your scenario.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.