Skip to content

Commit

Permalink
Merge branch 'main' into issue_10677
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu authored Jan 17, 2025
2 parents c09ecac + 1468b47 commit 83e7118
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;

import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Properties;

Expand Down Expand Up @@ -87,7 +88,8 @@ public static void init() {
@Produces
@ApplicationScoped
public StringEncrypter getStringEncrypter() throws EncryptionException {
FileConfiguration cryptoConfiguration = new FileConfiguration(".\\target\\conf\\salt");
String saltFilePath = Paths.get(Paths.get("").toAbsolutePath().toString(), "target/conf/salt").toAbsolutePath().toString();
FileConfiguration cryptoConfiguration = new FileConfiguration(saltFilePath);
String encodeSalt = cryptoConfiguration.getString("encodeSalt");

return StringEncrypter.instance(encodeSalt);
Expand Down

0 comments on commit 83e7118

Please sign in to comment.