Sending Encrypted Files with Keybase

Security is more important than ever. Learn how to use Keybase's Crypto feature to send encrypted files.

Sending Encrypted Files with Keybase

Kim Koga 02.08.2021

How do you send a credit card number? A private key? Files with sensitive information? You’ll want to use a product with end-to-end encryption. One of the most popular products in that arena is Keybase. I use Keybase to transfer important, private information and with so many of us working remotely now it’s important to know how to transfer information in a secure manner. 

Recently I needed to complete a task for a customer that involved transferring sensitive information and I wondered what was the best way to do this? I asked a team member who suggested Keybase’s Crypto feature which enables users to send Keybase encrypted files called Saltpacks which can only be decrypted by a designated recipient.

Once I received a file from my customer I tried to decrypt it in Keybase and ran into a roadblock: I couldn’t decrypt it and didn’t know how it worked. One of our engineers hopped on a call with me and we tried to figure it out together - it was confusing and we couldn’t find documentation so we played with it until we figured it out. To keep others from the same frustration that we had when trying to understand how Keybase's Crypto works I’ve written up directions on how to use Keybase’s Crypto feature below. 

Before you begin

  • Make sure you and the person you’re sending both have Keybase accounts. 
  • Make sure that your file(s) are in the format that you want to send them. For example, if you want to send a zip, be sure to zip your files before you begin. Note you can also use Crypto to send an encrypted message which Keybase will then turn into a file that you can download.
  • Verify the identity of your recipient in Keybase by reviewing the profile in app or through the browser at keybase.io/user-handle and ensuring that their identities (such as website, Twitter profile, Reddit, etc.) match up to your expectations.
    For Example, below is my Keybase profile and to the right of my profile picture you can see the various identities one can use to prove they are who they claim to be. keybase-verify-identity.png

Steps to Encrypt 

Encrypting a message or file

  1. Locate the Crypto feature in the sidebar 01-select-crypto-ed.png

  2. Select Encrypt. 02-select-Encrypt-ed.png

  3. Click into the To field to select a recipient. Doing this will open a modal which will allow you to select a user or users. Click on the user's name to select them. Once Selected click the Add button. 03-search-for-select-recipient-ed.png

  4. Enter text or drag and drop a folder into the message portion of the form. Leave the boxes  for Include Yourself and Sign checked.

    1. Entering and Encrypting Text

      1. When text is entered Keybase automatically creates a cryptogram. Use the Copy to Clipboard button to copy the cryptogram and send it as a message to the recipient.  04a-encrypting-a-text-message-ed-copy-to-clipboard.png 

      2. To send the cryptogram as a file click Save as TXT to download the encrypted message as a Saltpack. 04a-encrypting-a-text-message-ed-save-as-txt.png

        1. The Save as TXT button will download a Saltpack to your computer.  04a-encrypt-text-message-save-as-txt-file-ed.png
    2. Drag and Drop Folders and Files 

      1. Drag and drop your folder or file in the message box. 04b-encrypt-file-folder-ed.png

      2. Then click the blue Encrypt to… button. This will open a Finder window where you can select the location of where you'd like to save your Saltpack. 04b-encrypt-to-button-ed.png 

      3. Once your Saltpack has been created Keybase will show you the location of the Saltpack on your computer (the location you selected in the previous step). 04b-encrypted-to-folder-open-finder-ed.png

Sending Cryptograms and Saltpacks

Sending the Cryptogram Text

  1. To send the cryptogram text via Keybase's Chat simply navigate to Keybase's Chat, select the intended recipient, paste the text into chat box and send it. send-as-pasted-cipher-ed-ed.png

Sending the Saltpack

  1. To send a Saltpack, send it as an attachment via Keybase's Chat. 
    1. Drag and drop the Saltpack into the chat box or use the attachment icon which will open a modal and allow you to add a caption for the attachment. Once complete, click the blue Send button to send your file. send-as-01drag-n-drop-file-ed.png

      The Saltpack will appear as an attachment in the chat history. send-as-02-drag-drop-file-in-chat-ed.png



Steps to Decrypt Cryptograms and Saltpacks

Decrypting Cryptogram Text

  1. Copy the cryptogram text by hovering over the message and clicking the 3 dots that appear to the upper right of the message. decrypt-cipher-01-hover-on-message-ed.rkimYryWu.png

  2. Select Copy Text. decrypt-cipher-02-click-dots-ed.png

  3. Navigate to the Crypto feature and select Decrypt. decrypt-cipher-03-navigate-and-select-decrypt-ed.png

  4. Paste the cryptogram in and Keybase will automatically decrypt the message. decrypt-cipher-paste-in-cipher-ed.png

Decrypting a Saltpack

  1. Download the Saltpack by hovering over the message and clicking the 3 dots that appear to the upper right of the message. decrypt-saltpack-01-hover-click-dots-ed.png

  2. Select Download. decrypt-saltpack-02-click-download-ed.png

  3. Navigate to the Crypto feature and select Decrypt. decrypt-cipher-03-navigate-and-select-decrypt-ed.png

  4. Drag and drop your Saltpack into the text area. decrypt-saltpack-04-drag-drop-encrypted-file-ed.png

  5. Click the blue Decrypt To… button which will open a Finder window. decrypt-saltpack-05-click-decrypt-to-ed.png

  6. In the Finder select a location to save your decrypted file. decrypt-saltpack-06-select-location-to-decrypt-to-ed.png

  7. If decryption is successful you’ll see the location of the decrypted item. Click the Open in Finder button.decrypt-saltpack-07-success-show-in-finder-ed.png

  8. Open the decrypted file on your computer. decrypt-saltpack-08-open-in-finder-ed.png

Experience a Headless Content Management System, Join Zesty.io.


Start a Sandbox Now

More from Mindshare: Developer How-Tos

Placeholder image

Using Zesty.io Headless CMS with React

A step-by-step guide for using Zesty.io as a headless CMS paired with a React front end.

Read Article
Placeholder image

Sending Encrypted Files with Keybase

Security is more important than ever. Learn how to use Keybase's Crypto feature to send encrypted files.

Read Article
Placeholder image

How to Build a Blog in Zesty.io

Building a blog from start to finish takes less than 10 minutes in Zesty.io! Here's how to get started.

Read Article
Placeholder image

How to Build a Landing Page with Bootstrap in Minutes

Follow this tutorial to build a landing page to promote your product or service and launch within minutes.

Read Article
Kim Koga photo

Kim Koga

Solutions Engineer, Zesty.io

Experienced writer, editor, and solutions engineer. I love to write instructional documentation to help customers achieve their dreams. Github: https://github.com/kakoga ... Learn More

Speak with an Expert


Chat with Us

To speak with someone in sales and marketing, use the chat popup on this page. To speak with a developer, join https://chat.zesty.io

Exploring content solutions? Looking to replatform?