Data encryption is among the most effective techniques for protecting confidential files, but it can become a double-edged sword when recovering lost data. Why? Because files stored on an encrypted (password-protected) USB drive can’t be accessed by anyone unless the USB drive is decrypted and unlocked first. 

If you’ve found yourself in a situation where you need to recover lost files from an encrypted/password-locked USB drive, the instructions provided in this article are just what you need to get them back regardless of if you’re using Windows or macOS.

What Is an Encrypted File?

When a file has been encrypted, an encoding algorithm has been applied to it which modifies the data until a decryption key has been used. While encrypted, the file is no longer readable through normal means. File encryption is a method used to digitally protect your data from unwanted access.

How to Open an Encrypted File

In order to view an encrypted file, you must first decrypt it using a decryption key. In most cases, this is in the form of a password, but it could also be a physical access card or biometric data. In any case, once the file is decrypted using the decryption key, you can open and view the contents of the file like normal until it is encrypted again.

How to Unlock Encrypted USB Drive

It’s not possible to recover files from an encrypted USB drive unless the drive is decrypted/unlocked first. 

Let’s go over three ways to unlock an encrypted USB drive—one for Windows, one for macOS, and one that works regardless of which operating system you use.

recover deleted files from an encrypted USB flash drive

Method 1: How to Unlock a Flash Drive in Windows

Unlocking a password-locked USB drive in Windows is easy, assuming the drive has been encrypted using BitLocker, Microsoft’s encryption tool included with Microsoft Windows versions starting with Windows Vista.

How to unlock a flash drive encrypted using BitLocker:

  1. Insert the flash drive into a USB port on your PC.
  2. Open the Start menu and type “control panel.”
  3. Launch the classic Control Panel and navigate to System and Security → BitLocker Drive Encryption.
  4. Select the encrypted flash drive and click the Unlock drive option.how to recover encrypted files
  5. Enter your password and confirm.

If you don’t remember your password anymore, you can click More options and use your 48-digit recovery key instead. If you would like to learn how to remove a password from a USB flash drive encrypted with BitLocker, you can read this official tutorial.

Method 2: How to Decrypt a USB Flash Drive in macOS

macOS comes with a native disk encryption program called FileVault. If you need to recover files from a USB drive that has been encrypted with it, then you need to enter your password first to unlock it. The good news is that it won’t take you more than a minute to do so.

How to unlock a password-protected USB drive using FileVault:

  1. Insert the flash drive into a USB port on your Mac.
  2. Launch Finder and right-click your USB drive.
  3. Select the Decrypt option.recover files from encrypted usb on a mac
  4. Enter your password and confirm.

Tip: As a Mac user, you can also decrypt BitLocker-protected USB drives, but you need to use a third-party software application like UUByte BitLocker Geeker.

Method 3: How to Unlock a Physically Locked USB Flash Drive

how to remove password from usb flash drive

Just like SD cards, some USB flash drives feature a physical lock switch that makes it impossible to write new data on the device when engaged.

Such a switch can protect the USB drive from malware infections, accidental erasure and overwriting, and other user errors. However, it can also complicate recovery attempts by making it impossible to copy backups of lost files to the USB flash drive.

To disable read-only protection on your USB flash drive, all you need to do is move the lock switch to the off position.

How to Restore Files from Password-Protected USB Drive

Now that you know how to unlock a USB memory stick and make it fully accessible, we can finally explain what you need to do in order to recover lost files from it. Once again, we’re describing multiple methods so you can choose the one that best fits your specific data loss scenario. 

Option 1: Recover Your Files from a Backup

how to encrypt a flash drive without softwareIf you’ve been diligently backing up your data using File History in Windows or Time Machine in macOS, then you should be able to quickly and painlessly recover all lost files by following the step-by-step instructions below.

File History (Windows)

  1. Launch File Explorer.
  2. Right-click your USB drive and select the Restore previous versions option.
  3. Select a previous version and click Restore.password locked usb

Time Machine (macOS)

  1. Launch Finder and open your USB flash drive.
  2. Click the Time Machine icon in the Menu bar and select Enter Time Machine.how to unlock a flash drive
  3. Use the navigational arrows to find a backup with the files you want to recover.
  4. Select your files and click Restore.

Of course, there are countless third-party backup software applications for Windows and macOS, but it would be beyond the scope of this article to describe them all. That said, you should be able to find detailed instructions for just about any backup application with a simple Google search.

Option 2: Use Data Recovery Software

password protected usb driveDon’t have a backup from which you could recover your files? Don’t despair just yet! You can download data recovery software like Disk Drill and attempt to recover files that are no longer accessible from Windows or macOS.

Disk Drill and other similar applications scan the actual physical storage space, looking for traces of deleted files that haven’t been overwritten yet. If you act quickly enough and are at least a little bit lucky, you should recover some and maybe even all lost files.

We recommend Disk Drill because it runs on both Windows and macOS, is exceptionally easy to use, and delivers fantastic recovery results. What’s more, Disk Drill comes with handy extra tools that you can use to avoid data loss emergencies in the future.

To recover encrypted files from a USB drive on a Windows PC: 

  1. Download and install Disk Drill for Windows.
  2. Connect the USB drive to your PC and unlock it.
  3. Launch Disk Drill and scan the USB drive.how to recover encrypted files on windows
  4. Preview & select the files you want to recover.
  5. Click Recover and pick a suitable recovery location.recover files from encrypted usb on windows

To recover encrypted files from a USB drive on a Mac: 

  1. Download and install Disk Drill for Mac.
  2. Connect the USB drive to your Mac and unlock it.
  3. Launch Disk Drill and scan the USB drive.how to remove password from usb flash drive on mac
  4. Preview & select the files you want to recover.
  5. Click Recover and pick a suitable recovery location.how to encrypt a flash drive without software on mac

Option 3: Pay for Professional Data Recovery

how to unlock a USB flash drive with service Have your data recovery attempts failed to yield the desired results? If so, then you should consider sending your USB flash drive to a professional data recovery center.

Professional data recovery centers are equipped with state-of-the-art data recovery software and hardware tools, allowing them to recover data even from physically damaged or heavily corrupted storage devices.

Just don’t expect data recovery professionals to circumvent modern encryption standards, such as AES-256. Without the correct password, even experienced professionals won’t get too far.

How to Fix a Broken USB Flash Stick in Any Situation→

How to Recover Encrypted Files

Encrypted files can be recovered like any other file, though the fact remains that once the file is recovered, you will still need the decryption key in order to open and view it. 

How to Recover Encrypted Files From Windows 11/10

Windows offers a few methods for recovering encrypted files. Here are a few.

Restore from a Backup

The File History backup solution is included with your copy of Windows. If it was configured prior to the loss of your encrypted files, you can restore a working copy of the files you lost. To restore a copy of lost or deleted encrypted files from a File History backup, follow these steps:

  1. Navigate to the folder that contained your lost file.
  2. Click Home, then History.Opening File History.
  3. Select the encrypted file, then click the green restore button.Recovering the encrypted file.

Once restored, the file will return to its original location.

Recover Using Data Recovery Software

Data recovery software, like Disk Drill, can be used to recover encrypted files. This is a great option for those who don’t have access to a backed-up copy of their files. To retrieve a lost or deleted encrypted file using Disk Drill, follow these instructions:

  1. Download and install Disk Drill to a separate physical partition than the one where your file resides.
  2. Select the drive that contains the encrypted file from the list, then click Search for lost data.Scanning the drive.
  3. Click Review found items and mark the file you want to recover from the list. When ready, click Recover.Recovering the encrypted file.
  4. Select an output location that resides on a separate physical partition than where you’re recovering from, then click OK.Finalizing recovery.

Using a Third-party Decryption Tool

If you’re trying to decrypt files that were encrypted by ransomware, there are some options available. Ransomware is a type of malware that encrypts all of your data, rendering it unusable. The attacker will typically request payment from you via cryptocurrency in exchange for the decryption key. This should always be treated as a lie, as once the payment is made, there is no guarantee that the decryption key will be provided.

Instead, you can check out No More Ransom. It includes a directory of known ransomware, as well as their corresponding decryption tools so you can unlock your data. If you’re unable to find a decryption key for your files, it’s best to create a shadow copy of your data for safekeeping until one becomes available.

It should be noted that files encrypted with powerful file encryption, like Encrypting File System (EFS), are virtually impossible to decrypt without the correct certificates. This method typically only works on files encrypted by ransomware.

How to Recover Encrypted Files on Mac

It’s also possible to recover encrypted files on Mac. Here’s how.

Restore from a Backup

Time Machine is the backup solution for Mac, just like File History is for Windows. It makes incremental backups of your data that you can restore copies from should the need arise. Here’s how you restore an encrypted file from a Time Machine backup:

  1. Connect the media that holds your backup, then navigate to where the original file was stored on your computer.
  2. Click the Time Machine menu, then click Enter Time Machine.
  3. Locate the file you want to restore using the navigational arrows on the right. Select it, then click Restore.

Decrypt the File on Mac

If the file was encrypted on your Mac, you have the option of decrypting it using the Terminal. This will allow the file to be viewed like any other. Follow these steps to do so:

  1. Launch the Terminal window.
  2. Type openssl enc -aes-256-cbc -d -in <encryptedfile> -out <decryptedfile>. Replace <encryptedfile> with the filepath of your encrypted file and replace <decryptedfile> with output name and location of the file. Press Return.
  3. Enter the decryption password and press Return again.

How to Recover Encrypted Files on Android

Some Android devices come with built-in encryption capabilities, others rely on third-party applications. Here are two ways you can recover encrypted files on Android.

Recover Using Data Recovery Software on Android

DiskDigger is an Android app that can be installed on your device and used to recover lost encrypted files. Bear in mind that DiskDigger Pro must be bought and used as the free version only allows the recovery of photos. Your device must also be rooted before the application can work. Here’s how you recover encrypted files using DiskDigger Pro (the below instructions use the free DiskDigger version, but the steps will be almost identical):

  1. Download and open DiskDigger Pro.
  2. Tap Start Basic Photo Scan.Starting the basic scan.
  3. Mark the files you want to recover, then tap Recover.Recovering the marked files.
  4. Select how you want to recover the files. For this demonstration, we chose Save the files to a custom location on your device.Selecting how you want to save the file.
  5. Tap OK to finalize recovery.Selecting the output folder.

Recover Using Data Recovery Software on Mac

Disk Drill for Mac has the ability to recover files directly from your connected Android device. Again, like DiskDigger, your Android device must be rooted in order for this to work. Follow these instructions to recover encrypted files from your Android devices using Mac:

  1. Download and install Disk Drill for Mac.
  2. Connect your rooted Android device and enable USB debugging.
  3. Accept Disk Drill’s request for permission to scan your device.
  4. Select the Android Devices section. Choose your device, then scan it.
  5. Mark the files you want to recover. Click Recover, then choose where you want to store the files.

How to Recover Encrypted Files on iPhone

It’s generally harder to recover encrypted files from an iPhone, but there are still a few methods available to you.

Restore from a Backup

If your iOS device was backed up to iCloud, there’s a chance that your recently deleted encrypted files can be recovered from there. Of course, this is only possible if the file was saved to iCloud first.

  1. Go to iCloud.com, then click Recently Deleted.
  2. Select the file you want to recover, then click Recover. Alternatively, click Recover All to recover all files in here.

Recover Using Data Recovery Software

Although you’d assume that recovery would be unlikely given Apple’s inclination for doing things differently, it is very much possible to recover encrypted files from your iOS device. Again, this is only possible using Disk Drill for Mac.

  1. Download and install Disk Drill for Mac.
  2. Select your iOS device in the list, then scan it.
  3. Mark all the files you want to retrieve, then recover them.

Conclusion

Learning how to recover encrypted files from a USB drive isn’t nearly as difficult as it may initially seem. As long as you manage to successfully unlock the drive, the actual recovery is a piece of cake—at least if you use a straightforward data recovery tool. 

FAQ

Jordan Jamieson-Mane

Jordan Jamieson-Mane is a technology content writer with a passionate interest in technology. Starting from a young age, this interest gradually turned into a career, with Jordan studying in the field of IT and moving int...

Read full bio
Avatar
Approved by
Brett Johnson

This article has been approved by Brett Johnson, Data Recovery Engineer at ACE Data Recovery. Brett has a Bachelor's Degree in Computer Systems and Network, 12 years of experience.