- put your "constant" part in a String which will must have a fixed size
- that string should have only ASCII code; for max flexibility I'd use a base64 encoded string, so you can put even binary encripyted data
- compile the class
- if you open the .class with an hexadecimal editor, you are able to see and change that string
- edit the .class file by that hexadecimal editor, putting the new ASCII values. Keep attention not to change the size of the String
Note also that this approach can be hackable by some guys :)