fix(restore): check for AES instead of cipher to detect encrypted backup
Seems more consistent, have seen the following outputs with `file`: - GPG symmetrically encrypted data (AES256 cipher) - PGP symmetric key encrypted data - AES with 256-bit key salted & iterated - SHA512 . Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
9eda39ff61
commit
c22ff226aa
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ def _restore(
|
|||
click.secho("Failed to detect type of backup file", fg="red")
|
||||
sys.exit(1)
|
||||
|
||||
if "cipher" in out.decode().split(":")[-1].strip():
|
||||
if "AES" in out.decode().split(":")[-1].strip():
|
||||
if encryption_key:
|
||||
click.secho("Encrypted backup file detected. Decrypting using provided key.", fg="yellow")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue