Introduction to Encryption/Decryption
info
Habanero Mainnet and Manzano Testnet are now live. Check out the docs on migration to learn how you can start building on Habanero and Manzano today.
Overview
You can use Lit for decentralized encryption with your storage provider of choice. With Lit, you can encrypt content client-side and define access control conditions (ACCs) to provision access rights to users who meet the conditions you set.
Lit supports the use of both on and off-chain data when defining ACCs, examples including locking content behind:
- Membership within a particular DAO
- Ownership of a particular ERC-721 or ERC-20 token
- The result of any smart contract call
- The result of any API call, such as a follow on Twitter
Features
- Access Control Conditions can be defined using state from most EVM chains, Cosmos, and Solana.. View the full list here.
- AND + OR operators (boolean logic) can be used to combine any of the supported conditions listed above.
- Storage provider of choice: use your preferred storage solution, including IPFS, Arweave, Ceramic, or even a centralized provider, like AWS.
Resources
Learn how you can integrate decentralized access control with Lit into your own product:
- Quick Start Guide
- Storing Private Data on ComposeDB
- Encrypting Data on Arweave Using Lit and Irys
- Basic EVM Conditions
- Access Control Using Off-Chain Inputs