diff --git a/common/config.py b/common/config.py index a98448acb..f63f258bb 100644 --- a/common/config.py +++ b/common/config.py @@ -43,6 +43,7 @@ import logger import sshtools import encfstools +import gocryptfstools import password import pluginmanager import schedule @@ -275,7 +276,7 @@ def __init__(self, config_path=None, data_path=None): sshtools.SSH, _('SSH'), _('SSH private key'), False), 'local_encfs': ( encfstools.EncFS_mount, - _('Local encrypted'), + _('Local encrypted') + ' (EncFS)', _('Encryption'), False ), @@ -284,7 +285,13 @@ def __init__(self, config_path=None, data_path=None): _('SSH encrypted'), _('SSH private key'), _('Encryption') - ) + ), + 'local_gocryptfs':( + gocryptfstools.GoCryptFS_mount, + _('Local encrypted') + ' (gocryptfs)', + _('Encryption'), + False + ), } self.SSH_CIPHERS = { @@ -712,6 +719,14 @@ def localEncfsPath(self, profile_id = None): def setLocalEncfsPath(self, value, profile_id = None): self.setProfileStrValue('snapshots.local_encfs.path', value, profile_id) + # gocryptfs + def localGocryptfsPath(self, profile_id = None): + #?Where to save snapshots in mode 'local_gocryptfs'.;absolute path + return self.profileStrValue('snapshots.local_gocryptfs.path', '', profile_id) + + def setLocalGocryptfsPath(self, value, profile_id = None): + self.setProfileStrValue('snapshots.local_gocryptfs.path', value, profile_id) + def passwordSave(self, profile_id = None, mode = None): if mode is None: mode = self.snapshotsMode(profile_id)