C
C#2y ago
xenon

❔ 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
bawsi
bawsi2y ago
Obfuscation is not secure, it wont protect against attackers who are even somewhat good Try using a secret manager
Jimmacle
Jimmacle2y ago
simple, don't give your private keys to your users
Mayor McCheese
What type of app are you building?
Accord
Accord2y ago
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.
xenon
xenonOP2y ago
c# application
Jimmacle
Jimmacle2y ago
that's like asking "what kind of boat are you building" and you answer "a boat"
Mayor McCheese
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.
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server