Skip to content

Instantly share code, notes, and snippets.

@Mikiya83
Mikiya83 / qnap-clientenc-decrypt.sh
Created March 31, 2021 17:26 — forked from dguerri/qnap-clientenc-decrypt.sh
Quick shell script to decrypt client-side encrypted file using QNAP Hybrid Backup Sync. Only work with version 2 files
#!/bin/sh
set -ue
[ "$#" -lt 2 ] && { echo "Syntax: $0 <filename> <key>"; exit 1; }
filename="$1"
key="$2"
# Compose the key by repeating the user input until we have 32 characters (64 hex digits)
### Keybase proof
I hereby claim:
* I am mikiya83 on github.
* I am yoannttz (https://keybase.io/yoannttz) on keybase.
* I have a public key ASDXVxaMd5tcrheFGRicKIvDkVY2rjnrHWmpYmIYoMGMRwo
To claim this, I am signing this object: