You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-10 22:11:50 +02:00
All: Set new encryption methods as default (#12229)
This commit is contained in:
@@ -1716,17 +1716,6 @@ const builtInMetadata = (Setting: typeof SettingType) => {
|
||||
// storage: SettingStorage.File,
|
||||
// },
|
||||
|
||||
'featureFlag.useBetaEncryptionMethod': {
|
||||
value: false,
|
||||
type: SettingItemType.Bool,
|
||||
public: true,
|
||||
storage: SettingStorage.File,
|
||||
label: () => 'Use beta encryption',
|
||||
description: () => 'Set beta encryption methods as the default methods. This applies to all clients and takes effect after restarting the app.',
|
||||
section: 'sync',
|
||||
isGlobal: true,
|
||||
},
|
||||
|
||||
'featureFlag.richText.useStrictContentSecurityPolicy': {
|
||||
value: true,
|
||||
type: SettingItemType.Bool,
|
||||
|
@@ -72,9 +72,9 @@ export default class EncryptionService {
|
||||
|
||||
private encryptedMasterKeys_: Map<string, EncryptedMasterKey> = new Map();
|
||||
private decryptedMasterKeys_: Map<string, DecryptedMasterKey> = new Map();
|
||||
public defaultEncryptionMethod_ = Setting.value('featureFlag.useBetaEncryptionMethod') ? EncryptionMethod.StringV1 : EncryptionMethod.SJCL1a; // public because used in tests
|
||||
public defaultFileEncryptionMethod_ = Setting.value('featureFlag.useBetaEncryptionMethod') ? EncryptionMethod.FileV1 : EncryptionMethod.SJCL1a; // public because used in tests
|
||||
private defaultMasterKeyEncryptionMethod_ = Setting.value('featureFlag.useBetaEncryptionMethod') ? EncryptionMethod.KeyV1 : EncryptionMethod.SJCL4;
|
||||
public defaultEncryptionMethod_ = EncryptionMethod.StringV1; // public because used in tests
|
||||
public defaultFileEncryptionMethod_ = EncryptionMethod.FileV1; // public because used in tests
|
||||
private defaultMasterKeyEncryptionMethod_ = EncryptionMethod.KeyV1;
|
||||
|
||||
private encryptionNonce_: Uint8Array = null;
|
||||
|
||||
|
Reference in New Issue
Block a user