by konradb · 12y ago · 0 comments
> I was destroying the physical media, because you can’t encrypt SD cards.
Does she mean they don't come with built-in encryption? I'm curious as to why you couldn't just save an encrypted file or encrypted container to an SD card.
edit: aaah, camera. I got the wrong end of the stick. Thanks!
The main problem with adding encryption would be that photos and video can consume a lot of bandwidth, and the bandwidth inside a digital camera is limited, as is the processing power. It would make more sense to put the encryption directly on the media card, similar to the fashion in which Eye-fi cards include a tiny CPU and web server to automatically offload the content to a trusted network.
for i in $(seq 1 1000); do if=/dev/urandom of=/dev/sdc bs=$((1024 * 1024)) count=(SD size in MB); done
>Whole-disk wiping techniques faired only slightly better with SSD media. In the most extreme case, one unnamed SSD model still stored 1 percent of its 1 GB of data even after 20 sequential overwrite passes on the entire device.
http://www.theregister.co.uk/2011/02/21/flash_drive_erasing_...
I wonder how hard it is on SD drives.
Meanwhile this forum claims the NSA mandates physical destruction https://discussions.apple.com/docs/DOC-5521
Depends on the capability of your opponent and the consequences if your guess is wrong.
Might be easier to microwave the SD card
More on topic though, while there may not be a "simple" or trustworthy solution using built-in encryption on cameras or SD cards, it should be possible to create a (small, or "prototype sized but usable") device to sit in the middle of the electrical connections of the SD slot on any camera, and a normal SD card. The device would transparently encrypt video footage or pictures sent to the card. Would be an interesting side project.
I've used the Beaglebone's USB client and host ports, along with the Linux USB gadget drivers and LUKS, to do something similar to transparently encrypt USB sticks, it wasn't particularly fast (8-9MB/s) but it was usable :)
[1] http://en.wikipedia.org/wiki/Secure_Digital#DRM_copy-protect...
1) Create a LUKS volume on a connected USB stick/drive (cryptsetup luksFormat /dev/sda1)
2) Open the LUKS volume with a standard name for step 3 to use (cryptsetup luksOpen /dev/sda1 securestick)
3) Load the g_mass_storage USB gadget module and point it at that LUKS device (modprobe g_mass_storage file=/dev/mapper/securestick)
That's basically it, for testing it can be done very easily without scripting.
The end result is a transparent encryption device for USB drives. Plug the beaglebone in to a laptop's USB port and it will show a standard USB mass storage device available for formatting and mounting, unaware that the actual storage is encrypted, and neither the password or LUKS master key will ever be in the laptops RAM (a useful property of this setup).
This could of course be automated with some scripting, and made quite fancy (touchscreen keyboard to unlock the LUKS stick at boot time and load that gadget module properly).
Some beaglebone distros load a gadget module at boot time with their own scripts, but it should be possible to automatically unload it where that is the case.