<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: aviiciii</title>
    <description>The latest articles on Forem by aviiciii (@aviiciii).</description>
    <link>https://forem.com/aviiciii</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F951804%2F1605d977-165b-44b8-b49a-fc210ea2db48.jpeg</url>
      <title>Forem: aviiciii</title>
      <link>https://forem.com/aviiciii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aviiciii"/>
    <language>en</language>
    <item>
      <title>Encrypt your GDrive / Dropbox files. GPG for beginners!</title>
      <dc:creator>aviiciii</dc:creator>
      <pubDate>Mon, 24 Nov 2025 09:24:44 +0000</pubDate>
      <link>https://forem.com/aviiciii/encrypt-your-gdrive-dropbox-files-gpg-for-beginners-2c4j</link>
      <guid>https://forem.com/aviiciii/encrypt-your-gdrive-dropbox-files-gpg-for-beginners-2c4j</guid>
      <description>&lt;p&gt;Cloud providers like Google Drive and Dropbox encrypt your data during transfer, but they do not always encrypt it while stored on their servers. This means the service provider could technically read your files.&lt;/p&gt;

&lt;p&gt;I’m not suggesting that they actually do this, but it’s still something many people are understandably uncomfortable with especially during the recent fiasco on requests of backdoor to the customer data from the government. &lt;br&gt;


&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://www.internetsociety.org/blog/2025/05/encryption-under-threat-the-uks-backdoor-mandate-and-its-impact-on-online-safety/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.internetsociety.org%2Fwp-content%2Fuploads%2F2025%2F05%2FUK-Flag.jpg" height="auto" class="m-0"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://www.internetsociety.org/blog/2025/05/encryption-under-threat-the-uks-backdoor-mandate-and-its-impact-on-online-safety/" rel="noopener noreferrer" class="c-link"&gt;
            Encryption Under Threat: The UK’s Backdoor Mandate and Its Impact on Online Safety - Internet Society
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Weakening encryption not only undermines personal privacy but also jeopardizes national security and global cybersecurity standards. 
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.internetsociety.org%2Fwp-content%2Fthemes%2Fisoc%2Fdist%2Fimages%2Ffavicon%2Fandroid-icon-192x192.png"&gt;
          internetsociety.org
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;




&lt;p&gt;The simple solution to this is to save your data locally, which might not be feasible for everyone. That’s why many people still rely on cloud storage for backups.&lt;/p&gt;

&lt;p&gt;I am sharing the method that I use to encrypt my data during cloud storage ensuring that only I can access my data. &lt;/p&gt;

&lt;p&gt;I use GnuPG (GNU Privacy Guard) for this process — it’s free, open-source, and surprisingly simple to use.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GPG lets you take any file or folder and lock it with a password so only you can open it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You don’t need any technical background — just a few simple commands.&lt;/p&gt;

&lt;p&gt;By the end of this tutorial, you will have a basic understanding of how to encrypt your files and upload them to the cloud protecting your privacy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  macOS
&lt;/h3&gt;

&lt;p&gt;Using Homebrew. &lt;br&gt;
Install homebrew &lt;a href="https://brew.sh" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install gnupg
echo "alias gpg='gpg2'" &amp;gt;&amp;gt; ~/.zshrc &amp;amp;&amp;amp; source ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or with additional tools and GUI utilities (like GPG Keychain):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install --cask gpg-suite
echo "alias gpg='gpg2'" &amp;gt;&amp;gt; ~/.zshrc &amp;amp;&amp;amp; source ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Linux
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Debian / Ubuntu
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install gnupg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Fedora
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dnf install gnupg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Arch Linux / Manjaro
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo pacman -S gnupg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Windows
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Download the Gpg4win installer from: &lt;a href="https://gpg4win.org" rel="noopener noreferrer"&gt;gpg4win.org&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Run the installer and follow the setup instructions.&lt;/li&gt;
&lt;li&gt;After installation, open Kleopatra (a GUI for GPG) or use the command line via cmd.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Verify Installation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gpg --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Set the Default Algorithm for encryption (AES256)
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;AES-256 is a strong, modern encryption algorithm. Setting it as the default ensures all your files use the strongest protection automatically. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  MacOS / Linux
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "cipher-algo AES256" &amp;gt;&amp;gt; ~/.gnupg/gpg.conf
chmod 700 ~/.gnupg
chmod 600 ~/.gnupg/gpg.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Windows (in powershell)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir "$env:APPDATA\gnupg" -ErrorAction SilentlyContinue
Add-Content "$env:APPDATA\gnupg\gpg.conf" "cipher-algo AES256"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdc67u73azmsvvgdbsos.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdc67u73azmsvvgdbsos.webp" alt="File Encryption"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Encrypt
&lt;/h1&gt;

&lt;p&gt;Add your files to a folder and zip them using the command or via the quick actions:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We zip the folder first because GPG encrypts files, not directories.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;zip -r foldername.zip foldername/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or &lt;strong&gt;compress to zip file using any software&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Then you can encrypt it with the below command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gpg --output foldername.gpg -c foldername.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Enter a passphrase to encrypt your files. &lt;strong&gt;Do not lose this passphrase&lt;/strong&gt; — without it, decryption is impossible. Use a password manager and write it down somewhere safe that you can access later. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Tip: Use a long passphrase (3–5 random words). It’s easier to remember and harder to crack.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Check out this video on how to create a secure passphrase (so that they can't crack your encryption, you may wanna revisit when &lt;a href="https://news.mit.edu/2024/toward-code-breaking-quantum-computer-0823" rel="noopener noreferrer"&gt;quantum computing&lt;/a&gt; breaks this! so maybe check on this after every 5 years):&lt;/p&gt;

&lt;p&gt;

  &lt;iframe src="https://www.youtube.com/embed/3NjQ9b3pgIg"&gt;
  &lt;/iframe&gt;


&lt;/p&gt;

&lt;h1&gt;
  
  
  Upload your encrypted file to the drive
&lt;/h1&gt;

&lt;p&gt;You can now upload your encrypted file to your cloud provider without any worry!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Upload only the encrypted file (example: foldername.gpg).&lt;br&gt;
Never upload the unencrypted zip file.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fae9f7w1fo7kxbfyzfpdi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fae9f7w1fo7kxbfyzfpdi.png" alt="Upload to cloud"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Decrypt
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gpg --output foldername.zip -d foldername.gpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Enter your passphrase to decrypt the zip file and extract them to view your files.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This will recreate your original ZIP file. Just extract it to get your files back.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Once your file is encrypted with GPG, nobody — not Google, not Dropbox, not even hackers — can read it without your passphrase. Thanks for reading — stay safe and encrypted!&lt;/p&gt;

</description>
      <category>privacy</category>
      <category>cloud</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
