Skip to content
Merged
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 @@ -14,7 +14,7 @@
"visibility":"public"
},
"encryptAlgorithm" : {
"value": "sm4",
"value": "aes",
"serial":0,
"flags":["global"],
"name":"Encrypt algorithm",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ QString config_utils::cipherType()
auto cfg = Dtk::Core::DConfig::create("org.deepin.dde.file-manager",
"org.deepin.dde.file-manager.diskencrypt");
cfg->deleteLater();
auto cipher = cfg->value("encryptAlgorithm", "sm4").toString();
auto cipher = cfg->value("encryptAlgorithm", "aes").toString();
QStringList supportedCipher { "sm4", "aes" };
if (!supportedCipher.contains(cipher))
return "sm4";
return "aes";
return cipher;
}

Expand Down