Decrypt Synology Backups in Linux
Scenario
You have access to a folder encrypted by a Synology NAS in Linux and you want to decrypt it (without the Synology). Example: offsite backup of an encrypted Synology folder.
Steps
- Install
ecryptfs
$ sudo apt-get install ecryptfs-utils
- Create a mount point
sudo mkdir /mnt/synology
- Mount the folder
Mount the folder and use the password/key from the original encryption on the Synology.
$ mount -t ecryptfs /path/to/src /mnt/synology_decrypt # aes # 32 bytes # plaintext passthrough - n # filename encryption - y
NOTE: the src folder must not be nested inside a folder encrypted using ecryptfs (ex: encrypted Ubuntu home folder)