Header — Data Recovery Perth
(08) 6180 6959 [email protected] 7 Days a week from 8:00am – 10:00pm
Open Source Decryption Tools

Home › Open Source Decryption Tools

Open Source Decryption Tools

Hardware-encrypted external drives cannot simply be imaged and read. The bridge chip holds the key, so the volume has to be decrypted before a single file is recoverable. These are the tools that job requires.

Why an external drive needs decrypting at all

Many external drives encrypt everything written to them at the bridge chip inside the enclosure — often without the owner ever choosing to turn encryption on. Pull the bare drive out of the case and connect it directly, and the contents read as noise.

This page lists the environment and packages used for that work. It is reference material, not a walkthrough. If your drive is encrypted and failing, bring it in with its enclosure and power adapter — the enclosure is part of the recovery.

Base environment

What the toolchain runs on

Operating system CentOS 7
bashShell used to drive the process
GNU CoreutilsCore file and text utilities
util-linuxDisk and device utilities
sudoElevated privileges
cryptsetupHandles the encrypted volume
opensslCryptographic operations
vimFor the xxd utility
fileIdentifies file and volume types
multipath-toolsDevice mapping
Ubuntu equivalent
$ sudo apt-get install cryptsetup
Additional requirements

It depends which bridge chip is in the enclosure

Symwave
  • python (version 2)
  • pycryptoalso called python-crypto
JMicron & Initio
  • kernel developmentmay be called kernel-dev
  • GCCthe same version that was used to build your kernel
  • kmod or modutil
Ubuntu equivalent
$ sudo apt-get build-dep linux-image-$(uname -r)
The two that do the work

Core utilities

ReallymineGo

Handles the decryption itself. Written in Go, which means it builds and runs on the same machine used for imaging rather than needing a separate environment.

ddrescueC++

Takes the image. Reads the drive sector by sector and works around unreadable areas rather than stalling on them, so a failing encrypted drive can still be captured before decryption is attempted.

Order matters. The drive is imaged first with ddrescue and the decryption is run against the image, never against the original. If the drive is also failing physically, every read attempt costs you data.

Free appraisal

Encrypted drive not reading?

Bring the enclosure and the power adapter with it. The examination and quotation are no charge and obligation free.