C
C#14mo 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
bawsi14mo ago
Obfuscation is not secure, it wont protect against attackers who are even somewhat good Try using a secret manager
Jimmacle
Jimmacle14mo ago
simple, don't give your private keys to your users
Mayor McCheese
Mayor McCheese14mo ago
What type of app are you building?
Accord
Accord14mo 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
xenon14mo ago
c# application
Jimmacle
Jimmacle14mo ago
that's like asking "what kind of boat are you building" and you answer "a boat"
Mayor McCheese
Mayor McCheese14mo ago
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
Accord14mo 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
More Posts