Skip to content
Merged
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 @@ -92,6 +92,13 @@ public static String getEncryptKeyFromPath(String path) {
if (str.isEmpty()) {
return defaultKey;
}
if (str.length() != 16) {
throw new EncryptException(
"The length of the key("
+ str
+ ") in the file is not 16 bytes, please check the key file:"
+ path);
}
return str;
} catch (IOException e) {
throw new EncryptException("Read main encrypt key error", e);
Expand Down