Skip to content

Commit 9407c36

Browse files
committed
fix: change encoding to utf8
1 parent 567a697 commit 9407c36

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Crypto/Get Transaction.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ meta {
55
}
66

77
get {
8-
url: http://localhost:8080/transactions/5
8+
url: http://localhost:8080/transactions/1
99
body: none
1010
auth: none
1111
}

src/main/java/tech/buildrun/crypto/service/CryptoService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.io.IOException;
77
import java.nio.charset.StandardCharsets;
88

9+
910
public class CryptoService {
1011

1112
private static final StrongTextEncryptor encryptor;
@@ -14,7 +15,7 @@ public class CryptoService {
1415
try {
1516
var privateKey = new DefaultResourceLoader()
1617
.getResource("classpath:password.txt")
17-
.getContentAsString(StandardCharsets.US_ASCII);
18+
.getContentAsString(StandardCharsets.UTF_8);
1819

1920
encryptor = new StrongTextEncryptor();
2021
encryptor.setPassword(privateKey);

0 commit comments

Comments
 (0)