This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Java in General and the fly likes Compiled class password issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Compiled class password issue" Watch "Compiled class password issue" New topic

Compiled class password issue

Dan Eichler

Joined: Dec 01, 2011
Posts: 6
Working on a project today I found that I could grep my password and see it with in compiled classes using VI. I'm sure other editors will show a string as well. Is there anyway to prevent this?

Stephan van Hulst

Joined: Sep 20, 2010
Posts: 4003

Yeah. Don't hard code passwords. Or if you have to, encrypt them first.

The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Compiled class password issue
It's not a secret anymore!