mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 02:08:54 +00:00
PR #222 - Merge branch 'issue_189' of https://github.com/ThomasWaldmann/attic into merge
This commit is contained in:
commit
084f6e1602
1 changed files with 6 additions and 0 deletions
|
@ -190,6 +190,12 @@ def detect(cls, repository, manifest_data):
|
||||||
except IntegrityError:
|
except IntegrityError:
|
||||||
passphrase = getpass(prompt)
|
passphrase = getpass(prompt)
|
||||||
|
|
||||||
|
def change_passphrase(self):
|
||||||
|
class ImmutablePassphraseError(Error):
|
||||||
|
"""The passphrase for this encryption key type can't be changed."""
|
||||||
|
|
||||||
|
raise ImmutablePassphraseError
|
||||||
|
|
||||||
def init(self, repository, passphrase):
|
def init(self, repository, passphrase):
|
||||||
self.init_from_random_data(pbkdf2_sha256(passphrase.encode('utf-8'), repository.id, self.iterations, 100))
|
self.init_from_random_data(pbkdf2_sha256(passphrase.encode('utf-8'), repository.id, self.iterations, 100))
|
||||||
self.init_ciphers()
|
self.init_ciphers()
|
||||||
|
|
Loading…
Reference in a new issue