Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi for Secret Agents

You're reading from  Raspberry Pi for Secret Agents

Product type Book
Published in Apr 2013
Publisher Packt
ISBN-13 9781849695787
Pages 152 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Stefan Sjogelid Stefan Sjogelid
Profile icon Stefan Sjogelid

Table of Contents (12) Chapters

Keeping your data secret with encryption


In this section, we'll create a file container, you can think of it as a vault, and we encrypt whatever is put inside. As long as the vault is unlocked, files can be added to or deleted from it just like any regular filesystem, but once we lock it, no one will be able to peek inside or guess what's in the vault.

We'll be using a tool called cryptsetup that will help us create and manage the encrypted containers. Type the following command to install cryptsetup and the optional dosfstools if you'd like your vault to be accessible on a Windows machine:

pi@raspberrypi ~ $ sudo apt-get install cryptsetup dosfstools

Creating a vault inside a file

This technique will give you an encrypted vault mounted under a directory. You can then add files to it as you wish, and once locked, you can copy it and open it up on Windows.

  1. First, we need to create an empty file to hold our vault. Here you'll have to decide how much storage space to allocate to your vault....

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}