You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid allocating array just to fill secure buffer #9
private static void populateBufferWithSecureKeyData(ByteBuffer key) {
final Random random = new SecureRandom();
final byte bytes[] = new byte[key.capacity()];
random.nextBytes(bytes);
key.put(bytes);
Arrays.fill(bytes, (byte) 0);
}
Activity