Best way to store key
Posted: Sat Nov 05, 2016 5:20 am
I need to decrypt AES-encrypted data in my applet. And I have put the key which is used to encrypt data clearly in my applet constructor. Is it safe to have this key obviously in my code? For security, what is a proper way to do this?
Code: Select all
public BWApplet() {
...
byte[] aesKeyArray = { (byte)0xAA, (byte)0xAA, (byte)0xAA, (byte)0xAA,
(byte)0xAA, (byte)0xAA, (byte)0xAA, (byte)0xAA,
(byte)0xAA, (byte)0xAA, (byte)0xAA, (byte)0xAA,
(byte)0xAA, (byte)0xAA, (byte)0xAA, (byte)0xAA};
...
}