Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public class Authentication implements Runnable {
// Cipher is an AES in CBC mode
private static final String CIPHER_ALGORITHM = "AES";
private static final String CIPHER_MODE = "AES/CBC/PKCS5PADDING";
private static final String KEY = "AbtEr99DxsWWbJkP";
private static final int ivSize = 16;

private static final String ZEPPELIN_CONF_ANONYMOUS_ALLOWED = "zeppelin.anonymous.allowed";
Expand Down Expand Up @@ -198,7 +197,7 @@ private Map<String, String> login(String authKey, String endpoint) {
private Key generateKey() {
try {
KeyGenerator kgen = KeyGenerator.getInstance(CIPHER_ALGORITHM);
kgen.init(128, new SecureRandom(toBytes(KEY)));
kgen.init(128, new SecureRandom());
SecretKey secretKey = kgen.generateKey();
byte[] enCodeFormat = secretKey.getEncoded();
return new SecretKeySpec(enCodeFormat, CIPHER_ALGORITHM);
Expand Down