diff --git a/config/config/src/test/resources/io/helidon/config/application.conf b/config/config/src/test/resources/io/helidon/config/application.conf index 012af9e5c2d..d4bf023ce5d 100644 --- a/config/config/src/test/resources/io/helidon/config/application.conf +++ b/config/config/src/test/resources/io/helidon/config/application.conf @@ -1,5 +1,5 @@ # -# Copyright (c) 2017, 2021 Oracle and/or its affiliates. +# Copyright (c) 2017, 2025 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ app { name = "Demo" page-size = 20 basic-range = [ -20, 20 ] - storagePassphrase = "${AES=thisIsEncriptedPassphrase}" + storagePassphrase = "${GCM=thisIsEncriptedPassphrase}" } logging { diff --git a/config/encryption/src/main/java/io/helidon/config/encryption/EncryptionFilter.java b/config/encryption/src/main/java/io/helidon/config/encryption/EncryptionFilter.java index 71aa48d3839..ccc93dbd358 100644 --- a/config/encryption/src/main/java/io/helidon/config/encryption/EncryptionFilter.java +++ b/config/encryption/src/main/java/io/helidon/config/encryption/EncryptionFilter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2024 Oracle and/or its affiliates. + * Copyright (c) 2018, 2025 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ *

* Password in properties must be stored as follows: *

* Example: *
- * google_client_secret=${AES=mYRkg+4Q4hua1kvpCCI2hg==}
+ * google_client_secret=${GCM=mYRkg+4Q4hua1kvpCCI2hg==}
  * service_password=${RSA=mYRkg+4Q4hua1kvpCCI2hg==}
  * another_password=${service_password}
  * cleartext_password=${CLEAR=known_password}
@@ -205,7 +205,7 @@ private String decryptRsa(PrivateKey privateKey, String value) {
     }
 
     private String decryptAes(char[] masterPassword, String value) {
-        // google_client_secret=${AES=mYRkg+4Q4hua1kvpCCI2hg==}
+        // google_client_secret=${GCM=mYRkg+4Q4hua1kvpCCI2hg==}
 
         if (value.startsWith(PREFIX_GCM)) {
             String b64Value = value.substring(PREFIX_GCM.length(), value.length() - 1);
diff --git a/config/encryption/src/main/java/io/helidon/config/encryption/MpEncryptionFilter.java b/config/encryption/src/main/java/io/helidon/config/encryption/MpEncryptionFilter.java
index 77c5b919587..e87207f1ddb 100644
--- a/config/encryption/src/main/java/io/helidon/config/encryption/MpEncryptionFilter.java
+++ b/config/encryption/src/main/java/io/helidon/config/encryption/MpEncryptionFilter.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018, 2023 Oracle and/or its affiliates.
+ * Copyright (c) 2018, 2025 Oracle and/or its affiliates.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@
  * 

* Password in properties must be stored as follows: *