• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Encrypted SD Card removed before factory reset

meridius

Member
Oct 2, 2016
66
9
Well I was going to get caught out one day on encryption and it seems that this has happened now.

I first removed an encrypted SD Card before factory resetting my Samsung Galaxy J2 Core. The phone had also been set to Secure startup. After the factory reset I attached the SD Card and the phone will not decrypt the SD Card. I thought the encryption key of the SD Card may be the same as the four digits that are used to enter the phone.

I have copied the relevant file I need to Windows (which is Contacts.vcf) but cannot seem to find a free app to try to decrypt it. Any ideas and if this is possible at all?

In the worst case that there is no solution, I have only lost two months of backed up contacts, which is less bad than losing all of them. But it also makes me wonder what would happen in a scenario where a phone is completely damaged beyond repair and is unable to work at all, therefore encrypting an SD Card is linked to the phone itself and dependent on it in its current state.
 
Well I was going to get caught out one day on encryption and it seems that this has happened now.

I first removed an encrypted SD Card before factory resetting my Samsung Galaxy J2 Core. The phone had also been set to Secure startup. After the factory reset I attached the SD Card and the phone will not decrypt the SD Card. I thought the encryption key of the SD Card may be the same as the four digits that are used to enter the phone.

It's not. The encryption key is pseudo-randomly generated when the card is encrypted. And that key was securely erased when the phone was reset. You can still have encrypted storage even if there's no PIN or password lock on the device itself.

I have copied the relevant file I need to Windows (which is Contacts.vcf) but cannot seem to find a free app to try to decrypt it. Any ideas and if this is possible at all?

FYI the SD is encrypted using AES256, which was invented by Uncle Sam. And there are no free apps to break it. Even the feds might have difficulty with AES.
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard#Known_attacks
"At present, there is no known practical attack that would allow someone without knowledge of the key to read data encrypted by AES when correctly implemented."



In the worst case that there is no solution, I have only lost two months of backed up contacts, which is less bad than losing all of them. But it also makes me wonder what would happen in a scenario where a phone is completely damaged beyond repair and is unable to work at all, therefore encrypting an SD Card is linked to the phone itself and dependent on it in its current state.

Your best friend is backup, backup, backup!! ...either to local storage, or to the cloud, or both. Because even if it wasn't encrypted, and the phone with SD went missing, broke, or was trashed....
 
Last edited:
Upvote 0
Encrypting an SD card basically makes it part of the device that it is encrypted on.

This makes it so that the card will not be able to be read by other devices.

By resetting, you erase the user data on a device, and the encryption key is part of that.

To unencrypt the SD card, is to reformat it- which will erase everything on it.

You would of had to send the data from the card to an entirely different storage before the reset happened.
 
Upvote 0
Thanks for letting me know. I could have had a much harder lesson as I backed up my contacts in October so am only missing 2 months or so of them.

However I'm not sure I'm going to encrypt the SD Card again so this doesn't happen once more! My phone is offline so the best policy is probably to regularly copy the .vcf files to my PC.
 
  • Like
Reactions: puppykickr
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones