Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 681903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:32:06+00:00 2026-05-14T01:32:06+00:00

I have been writing web applications for quite sometime in PHP with MySQL. I

  • 0

I have been writing web applications for quite sometime in PHP with MySQL. I always stored my database connection information into a configuration variable and connected to the database that way.

A client wants a java applet for their website to communicate with their database. I’m very hesitant on this because the applet is going to be public and I am not sure how I would go about storing the database connection information.

I’m paranoid that someone would decompile my application or find some way to extract my database connection information and use it maliciously.

Any suggestions on how to do this securely?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:32:06+00:00Added an answer on May 14, 2026 at 1:32 am

    Just to clarify, you’re not too worried about the connection being “overheard”, you’re worried that somebody might hack open your applet and pull out the database connection details, right?

    Well I would probably not let it connect directly and instead have it talk to a web-app that returned the data in JSON/XML. People can still grab that from within your applet if they really want to but they’re limited to what the web-app can.

    If that doesn’t float your boat, make sure that the database user the applet uses is limited to doing only what it needs to. If it’s just pulling data, don’t give it insert permission.

    If you’re only doing writes, another option is to have a public database and a private database. Writes from your applet go into the public DB and get synced over once verified. The problem with this is you might lose some built-in checks and relationships unless you keep a copy of all the data in the public DB – which may not be safe.

    Another option could be to give each user their own database user. Then if somebody unauthorised were to get the applet, they’d still need an account to get in.

    I think that building an intermediary web-app is probably your best bet but I don’t know the full scenario, so I’m not best placed to judge.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently been using rails for a web application, and so I have
I have been reading up on web crawling and got a list full of
I have been writing a browser based application (or rather, rapid prototyping an application)
I have been writing some code that detects add and removal of USB devices,
I have a web-application. As part of this, I need users of the app
I am in the process of re-writing some very outdated .NET 2.0 SOAP web
I have a small hobby project where I'm writing a 'wrapper'-daemon in linux, in
So, I am working on a demo web dashboard. Previously, I had been using
I am writing this to get a more realistic view of what I should
This might be a piece of cake for any experienced C# developer What you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.