Lighthouse
  • 👋Introduction
  • Quick Start
  • How To
    • 🔑Create an API Key
    • 🔼Upload Data
      • 📁File
      • 🔤Text/JSON
      • 🔀Buffer
    • 🔒Upload Encrypted Data
      • 📁File
      • 🔤Text/JSON
      • 🔐Encryption Authentication
        • 📝Method 1: Signed Message
        • ⚕️Method 2: JWT
        • 📲Method 3: Passkey
    • Encryption Features
      • 👯Share File
      • ❌Revoke Access
      • 🔑Check Access Conditions
      • 🚪Token Gating
      • Chains Supported
      • 📃Access Control Conditions
      • 🔓Decrypt File
        • 🌐Browser Decrypt File
        • 💻NodeJS Decrypt File
      • 🚪Access control with zkTLS
      • 👬Account Delegation Tutorial
    • 📂List Files
    • 💁File Info
    • 💰Get Balance
    • 🔁Retrieve File
    • 💾Check for Filecoin Deals
    • 🔄IPNS - Handle Mutable Data
    • 📦Migrate Files
    • 📌Pin CID
    • 💸Pay per use
    • Resize Image
    • 💻Use CLI Tools
  • zkTLS
  • 🤝Account Delegation
  • 💾Filecoin First
    • Usage
    • 💰Pay Per Deal
  • Tutorials
    • 💸Pay to View Application
    • Use Python SDK
    • 📝Update Content with Lighthouse IPNS
    • 📹Add Video Player in UI
    • ✅Document Verification with PoDSI
    • 🎨Minting NFTs on EVM Chains
    • 🪙Minting NFTs on Solana
    • 👩‍💻Programmable Storage with Lighthouse SDK and Filecoin
    • 🔐Secure File Sharing
    • Upload Encrypted Files
    • 📄Token Gating and Custom Contract
    • 🔑Token Gating NFTs
    • 🏖️Pushing File Metadata Onchain
    • Use Radix Wallet on Lighthouse Filesdapp
  • Concepts
    • Glossary
    • IPFS CID Transition to v1
  • Support
    • 📞Contact
Powered by GitBook
On this page
  • Features
  • GitHub

Was this helpful?

Edit on GitHub
  1. How To

Upload Encrypted Data

PreviousBufferNextFile

Last updated 1 year ago

Was this helpful?

IPFS is a public network imply files uploaded to the IPFS network can be viewed by anyone around the world. To secure your file over a public network user can encrypt the file. This section explains how to upload a file and text using encryption.

Kavach is the Encryption SDK created by the Lighthouse team that allows you to build your trustless, decentralized, and fault-tolerant Applications using distributed key shards with threshold cryptography.

Lighthouse SDK already uses the Kavach Encryption SDK underneath, so developers can directly refer to encryption and access control code examples to store private data on IPFS and build token-gated applications.

Features

  • Randomized key shard generation

  • Shard Key support for privateKey and other security keys

  • Key Reconstruction from shards

  • Fully typed, support in TypeScript

  • Stores shards on Lighthouse Encryption Key storage(Optional 5 nodes)

GitHub

🔒
Upload an encrypted file
Upload Text/JSON with encryption
https://github.com/lighthouse-web3/encryption-sdk