Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Keeping connection strings secure

Keeping connection strings secure

Scheduled Pinned Locked Moved C#
helpcsharpandroidmysqlcloud
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Frank R Haugen
    wrote on last edited by
    #1

    This is a somewhat wide subject, so the QnA was inappropriate. I am working on some games and apps, and they need to talk to some MySQL servers and/or Azure resources, and so I need some connection strings. Usually I've made internal tools, where having the connection strings in code or in a XML or Json -file, was unproblematic. Now I'm having the issue that APK's are basically Zip-files, and .net executables are de-compilable. My first solution is to setup an intermediary web service to keep the connection strings unavailable from the app. But I can't help but think that I'm missing something here. Also, an extra middle-man webserver, increase the possible bottle-necks and failure points What are this community's thoughts on the subject? Thanks for your time!

    L 2 Replies Last reply
    0
    • F Frank R Haugen

      This is a somewhat wide subject, so the QnA was inappropriate. I am working on some games and apps, and they need to talk to some MySQL servers and/or Azure resources, and so I need some connection strings. Usually I've made internal tools, where having the connection strings in code or in a XML or Json -file, was unproblematic. Now I'm having the issue that APK's are basically Zip-files, and .net executables are de-compilable. My first solution is to setup an intermediary web service to keep the connection strings unavailable from the app. But I can't help but think that I'm missing something here. Also, an extra middle-man webserver, increase the possible bottle-necks and failure points What are this community's thoughts on the subject? Thanks for your time!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Frank R. Haugen wrote:

      This is a somewhat wide subject, so the QnA was inappropriate.

      Actually quite the opposite. More people would see this in Q&A, rather than just those who look at C# questions (which this is not).

      1 Reply Last reply
      0
      • F Frank R Haugen

        This is a somewhat wide subject, so the QnA was inappropriate. I am working on some games and apps, and they need to talk to some MySQL servers and/or Azure resources, and so I need some connection strings. Usually I've made internal tools, where having the connection strings in code or in a XML or Json -file, was unproblematic. Now I'm having the issue that APK's are basically Zip-files, and .net executables are de-compilable. My first solution is to setup an intermediary web service to keep the connection strings unavailable from the app. But I can't help but think that I'm missing something here. Also, an extra middle-man webserver, increase the possible bottle-necks and failure points What are this community's thoughts on the subject? Thanks for your time!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Frank R. Haugen wrote:

        Now I'm having the issue that APK's are basically Zip-files, and .net executables are de-compilable.

        Does not seem an issue for Rimworld.

        Frank R. Haugen wrote:

        What are this community's thoughts on the subject?

        If you can't afford the user in the database, don't give away the connectionstring. Simple as that. Third parties can't keep secrets on a computer that isn't theirs. Who is going to be the "owner" of the data? You, or the user? Is the user going to be allowed to make changes? If no, simply give them a connection-string that's hooked to a user with limited (read) access.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups