java - Secret Information in Programs -


so read this question on programmers se , got little confused. in short, solution keep secret information in config files. i'm confused. couldn't user go searching file?

what methods used prevent users finding file? i'm using java on windows if changes answer @ all.

i think encryption come i'm not sure how helps if user can decompile source.

edit: clarify further, intention use api keys (in case 1, singular key) in executable jar file.

this depends trying achieve. assume here user has access enviroment in software running. if need store secret information, can use encryption, user has supply key. difficult implement correctly, there plenty of libraries , resources this.

if problem described in programmers se- want share code without sharing 'secret' settings- extract settings configuration file , don't share configuration file. can give template, secrets missing.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -