You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@lit-protocol/crypto

Package Overview
Dependencies
Maintainers
8
Versions
552
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lit-protocol/crypto

A comprehensive cryptographic toolkit for the Lit Protocol SDK that handles secure key operations, encryption/decryption, and advanced cryptographic schemes.

7.1.0
Source
npmnpm
Version published
Weekly downloads
15K
-2.1%
Maintainers
8
Weekly downloads
 
Created
Source

Crypto

A comprehensive cryptographic toolkit for the Lit Protocol SDK that handles secure key operations, encryption/decryption, and advanced cryptographic schemes.

Installation

yarn add @lit-protocol/crypto

Quick Start

import { generateSessionKeyPair, encrypt } from '@lit-protocol/crypto';

// Generate a new key pair
const keyPair = await generateSessionKeyPair();

// Encrypt data with public key and identity param
const encryptedData = await encrypt(
  keyPair.slice(2),
  new Uint8Array([1, 2, 3]),
  new Uint8Array([4, 5, 6])
);

Key Features

  • Private key generation and management
  • BLS and ECDSA cryptographic schemes
  • Secure key import/export
  • Data encryption and decryption
  • Cryptographic share management
  • Signature generation and verification

Supported Operations

  • Key Generation: Create secure cryptographic keys
  • Encryption/Decryption: Protect sensitive data
  • Share Management: Handle distributed key shares
  • Signature Operations: Generate and verify cryptographic signatures

Keywords

library

FAQs

Package last updated on 08 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts