Crypto: Removing non-ascii characters from unit tests

This commit is contained in:
REDMOND\brodes
2025-10-06 09:56:14 -04:00
parent b32a6407b9
commit 606aef38cb
6 changed files with 5 additions and 21 deletions

View File

@@ -81,7 +81,7 @@ public class SymmetricAlgorithm {
*/
public byte[] aesGcmEncryptUnsafe(SecretKey key, byte[] plaintext) throws Exception {
Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
byte[] iv = new byte[12]; // Fixed IV (all zeros by default) insecure.
byte[] iv = new byte[12]; // Fixed IV (all zeros by default) - insecure.
GCMParameterSpec spec = new GCMParameterSpec(128, iv);
cipher.init(Cipher.ENCRYPT_MODE, key, spec);
byte[] ciphertext = cipher.doFinal(plaintext);