<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>encryption on Tech for Breakfast</title><link>https://techforbreakfast.com/en/tags/encryption/</link><description>Recent content in encryption on Tech for Breakfast</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 22 May 2024 20:22:41 +0100</lastBuildDate><atom:link href="https://techforbreakfast.com/en/tags/encryption/index.xml" rel="self" type="application/rss+xml"/><item><title>Remote unlocking of a LUKS-encrypted disk</title><link>https://techforbreakfast.com/en/remote-unlock-luks-encrypted-disk/</link><pubDate>Wed, 22 May 2024 20:22:41 +0100</pubDate><guid>https://techforbreakfast.com/en/remote-unlock-luks-encrypted-disk/</guid><description>&lt;h2 id="installation"&gt;Installation&lt;/h2&gt;&#10;&lt;p&gt;We start by updating the distribution&amp;rsquo;s package repository&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get update&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;And then we can install dropbear-initramfs&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;text&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get install dropbear-initramfs&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;While Dropbear is being installed, the following message may appear:&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;dropbear: WARNING: Invalid authorized_keys file, SSH login to initramfs won&amp;rsquo;t work!&amp;rdquo;&lt;/p&gt;</description></item><item><title>Encrypting and formatting disks on Linux</title><link>https://techforbreakfast.com/en/encrypt-and-format-disks-linux/</link><pubDate>Sun, 12 Nov 2017 00:00:00 +0000</pubDate><guid>https://techforbreakfast.com/en/encrypt-and-format-disks-linux/</guid><description>&lt;h2 id="steps-to-encrypt-disks-on-linux-tested-here-on-xubuntu-1604"&gt;Steps to encrypt disks on Linux (tested here on Xubuntu 16.04)&lt;/h2&gt;&#10;&lt;p&gt;Wipe the disk&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;bash&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; dd &lt;span style="color:#ff7b72"&gt;if&lt;/span&gt;&lt;span style="color:#ff7b72;font-weight:bold"&gt;=&lt;/span&gt;/dev/zero &lt;span style="color:#79c0ff"&gt;of&lt;/span&gt;&lt;span style="color:#ff7b72;font-weight:bold"&gt;=&lt;/span&gt;/dev/&amp;lt;disk&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Encrypt the disk&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;bash&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; cryptsetup -y -v luksFormat /dev/&amp;lt;disk&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Decrypt the disk to access it&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&#10; &lt;span class="code-dots" aria-hidden="true"&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&#10; &lt;span class="code-lang"&gt;bash&lt;/span&gt;&#10; &lt;button type="button" class="code-copy"&gt;copy&lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; cryptsetup luksOpen /dev/&amp;lt;disk&amp;gt; &amp;lt;name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;the name can be anything you like. Format the disk&lt;/p&gt;</description></item><item><title>Wheezy – Encrypting the home folder after installation</title><link>https://techforbreakfast.com/en/wheezy-encrypt-home-folder-after-installation/</link><pubDate>Sun, 25 Nov 2012 00:00:00 +0000</pubDate><guid>https://techforbreakfast.com/en/wheezy-encrypt-home-folder-after-installation/</guid><description>&lt;p&gt;To encrypt the home folder after installation on Debian Wheezy, follow these steps:&lt;/p&gt;&#10;&lt;p&gt;Log out the user whose home folder you want to encrypt&lt;/p&gt;&#10;&lt;p&gt;Log in as root, for example after switching to a console with CTRL+F2, and then install the ecryptfs-utils package&lt;/p&gt;</description></item></channel></rss>