Add TODO for allowing non-utf8 passwords during decryption

This commit is contained in:
Paul Schaub 2022-02-10 11:35:22 +01:00
parent e88d9f9dab
commit 780abbbc51
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -106,6 +106,7 @@ public class FileUtil {
while ((read = inputStream.read(buf)) != -1) { while ((read = inputStream.read(buf)) != -1) {
byteOut.write(buf, 0, read); byteOut.write(buf, 0, read);
} }
// TODO: For decrypt operations we MUST accept non-UTF8 passwords
return UTF8Util.decodeUTF8(byteOut.toByteArray()); return UTF8Util.decodeUTF8(byteOut.toByteArray());
} finally { } finally {
inputStream.close(); inputStream.close();