Skip to content

Commit

Permalink
Add TODO for allowing non-utf8 passwords during decryption
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed Feb 10, 2022
1 parent e88d9f9 commit 780abbb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public static String stringFromInputStream(InputStream inputStream) throws IOExc
while ((read = inputStream.read(buf)) != -1) {
byteOut.write(buf, 0, read);
}
// TODO: For decrypt operations we MUST accept non-UTF8 passwords
return UTF8Util.decodeUTF8(byteOut.toByteArray());
} finally {
inputStream.close();
Expand Down

0 comments on commit 780abbb

Please sign in to comment.