mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-26 09:02:06 +01:00
Add TODO for allowing non-utf8 passwords during decryption
This commit is contained in:
parent
e88d9f9dab
commit
780abbbc51
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue