Minor cleanup

This commit is contained in:
Erik C. Thauvin 2023-04-14 18:40:39 -07:00
parent 13a6a75613
commit c42d164dd3
9 changed files with 44 additions and 37 deletions

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package java;import java.security.SecureRandom;
package java;
/**
* Security class
@ -24,11 +24,6 @@ package java;import java.security.SecureRandom;
*/
public class Security {
void bad() {
byte[] iv = new byte[] { 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, };
SecretKeySpec secretKeySpec = new SecretKeySpec("my secret here".getBytes(), "AES");
}
void alsoBad() {
byte[] iv = "secret iv in here".getBytes();
}
}