Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public BytesStore(byte [] value) {

@Override
public String getValueAsString() {
return new String(this.value);
return new String(this.value, StandardCharsets.UTF_8);
}

@Override
Expand Down Expand Up @@ -415,7 +415,7 @@ public SealedStore(CharSequence charSequence) {

@Override
public String getValueAsString() {
return new String(getBytes());
return new String(getBytes(), StandardCharsets.UTF_8);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void saveKdbx() throws IOException {
}

// save to a file with password "123"
new File("testOutput").mkdirs();
try (FileOutputStream outputStream = new FileOutputStream("testOutput/test.kdbx")) {
database.save(new KdbxCreds("123".getBytes()), outputStream);
}
Expand Down