Click here to Skip to main content
15,903,362 members
Home / Discussions / Java
   

Java

 
GeneralRe: Encryption of Java-DB connection url?? Pin
TorstenH.4-Feb-11 3:45
TorstenH.4-Feb-11 3:45 
AnswerRe: Encryption of Java-DB connection url?? Pin
Richard MacCutchan4-Feb-11 1:10
mveRichard MacCutchan4-Feb-11 1:10 
GeneralRe: Encryption of Java-DB connection url?? [modified] Pin
Alok Sharma ji4-Feb-11 1:38
Alok Sharma ji4-Feb-11 1:38 
GeneralRe: Encryption of Java-DB connection url?? Pin
Richard MacCutchan4-Feb-11 2:48
mveRichard MacCutchan4-Feb-11 2:48 
AnswerRe: Encryption of Java-DB connection url?? Pin
jschell4-Feb-11 9:46
jschell4-Feb-11 9:46 
GeneralRe: Encryption of Java-DB connection url?? Pin
Alok Sharma ji4-Feb-11 21:12
Alok Sharma ji4-Feb-11 21:12 
GeneralRe: Encryption of Java-DB connection url?? Pin
Richard MacCutchan4-Feb-11 23:34
mveRichard MacCutchan4-Feb-11 23:34 
GeneralRe: Encryption of Java-DB connection url?? Pin
jschell5-Feb-11 7:16
jschell5-Feb-11 7:16 
Alok sharma ji wrote:
what about small client apps with ms-access or mysql, also i have obfuscated my code but still an encryption will be good, although there is no guaranty of 100% security of code, i still wants to manage as much as i can.


That doesn't tell me anything.

For example say you want to write an app that plays mp3s and keeps user information about them. That would be a "small client app" and it it absolutely pointless to worry about security in that case.

Or perhaps you are writing a custom viewer for a database in a credit card processing center. In that case look into using a database protocol (connection) that doesn't require a user at all - the user credentials of the user using the app is used automatically.

Or you write a multiplayer game the communicates with a server - then you shouldn't have database code in the client app at all. Rather it should be in the server app only.

The other suggestion about the user typing a password can be useful too. However you must then consider what happens if the user forgets the password. Or, for a small business app, what if the the only employee with the password dies or is fired? The specifics of the business must dictate if you have a way to fix that problem or if you insist that the business is responsible for that themselves.

There are some simple tricks which might be suitable. One is to break the password into pieces (two strings) and separate from the connection string. Another is to do a simple encryption of the password. Put the encrypted value in the code and then decrypt for usage. It isn't secure from anyone that can code but it does prevent the casual explorer from finding it.

Finally note that the password provides access to the database. It doesn't protect the data in the database itself. To do that you must encrypt the data itself.
GeneralRe: Encryption of Java-DB connection url?? Pin
Alok Sharma ji13-Feb-11 19:20
Alok Sharma ji13-Feb-11 19:20 
QuestionHTML forms action attribute getting changed Pin
User 62554643-Feb-11 17:14
User 62554643-Feb-11 17:14 
AnswerRe: HTML forms action attribute getting changed Pin
Richard MacCutchan3-Feb-11 22:26
mveRichard MacCutchan3-Feb-11 22:26 
AnswerRe: HTML forms action attribute getting changed Pin
Alok Sharma ji4-Feb-11 1:05
Alok Sharma ji4-Feb-11 1:05 
GeneralRe: HTML forms action attribute getting changed Pin
User 62554644-Feb-11 17:59
User 62554644-Feb-11 17:59 
Questioncan someone please explain this if expression? Pin
TorstenH.1-Feb-11 0:06
TorstenH.1-Feb-11 0:06 
AnswerRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 1:15
mveRichard MacCutchan1-Feb-11 1:15 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 1:47
TorstenH.1-Feb-11 1:47 
AnswerMessage Closed Pin
1-Feb-11 3:29
User 11380001-Feb-11 3:29 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 3:58
TorstenH.1-Feb-11 3:58 
GeneralRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 4:14
mveRichard MacCutchan1-Feb-11 4:14 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 5:29
TorstenH.1-Feb-11 5:29 
GeneralRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 5:52
mveRichard MacCutchan1-Feb-11 5:52 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 23:54
TorstenH.1-Feb-11 23:54 
GeneralRe: can someone please explain this if expression? Pin
jschell1-Feb-11 10:55
jschell1-Feb-11 10:55 
GeneralRe: can someone please explain this if expression? Pin
Richard MacCutchan1-Feb-11 3:51
mveRichard MacCutchan1-Feb-11 3:51 
GeneralRe: can someone please explain this if expression? Pin
TorstenH.1-Feb-11 4:03
TorstenH.1-Feb-11 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.