npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pqc-react-native-sdk

v1.0.0

Published

Enterprise Post-Quantum Cryptography SDK for React Native

Readme

pqc-react-native-sdk

An enterprise-ready Post-Quantum Cryptography (PQC) SDK for React Native.

This SDK abstracts the complexities of establishing ML-KEM-768 shared secrets, deriving HKDF keys, and performing AES-256-GCM symmetric encryption into an easy-to-use, immutable client structure.

This SDK executes mathematically valid KEM operations locally on edge devices using pure JavaScript boundaries.

Installation

npm install pqc-react-native-sdk
# or
yarn add pqc-react-native-sdk

Peer Dependencies

Because this SDK operates securely within React Native, it requires the following polyfills and cryptographic suites to be installed in your hosting application:

npm install react-native-get-random-values base-64 @noble/post-quantum @noble/hashes @noble/ciphers

Make sure to import 'react-native-get-random-values' at the very top of your application entry point (e.g., App.tsx or index.js).

Usage

1. Initialization

Create an instance of the PQCClient and provide your API configuration. The instance itself strictly freezes the configuration to ensure immutability throughout the application flow.

import { PQCClient } from 'pqc-react-native-sdk';

const pqcClient = new PQCClient({ serverUrl: 'https://api.yourdomain.com' });

// Fetch the active ML-KEM Server Public Key securely
await pqcClient.init();

if (pqcClient.isInitialized()) {
    console.log("Ready for Post-Quantum Encryption!");
}

2. Payload Encryption (Outbound)

When you want to send a secure payload to your server, simply pass the JSON object to the encryptPayload() function. The SDK handles generating the ML-KEM shared secret, the HKDF, and the AES symmetric ciphering.

const mySecureData = {
    userId: "123",
    creditCard: "4444-4444-4444-4444"
};

// Generates the ciphertext block and captures the symmetric key used
const { requestBody, aeadKey } = pqcClient.encryptPayload(mySecureData);

// Send the strictly formatted KEM structure to your backend API
const response = await fetch('https://api.yourdomain.com/v1/decrypt', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(requestBody)
});

const encryptedServerData = await response.json();

3. Response Decryption (Inbound)

Assuming your backend executes a 2-way True Post-Quantum flow using the same derived symmetric key to encrypt its response, you can easily decode the response using the aeadKey stored from step 2.

// Using the exact `aeadKey` derived during the encryptPayload routine
const decryptedPayload = pqcClient.decryptResponse(aeadKey, encryptedServerData);

console.log("Server responded with: ", decryptedPayload);

Security

This SDK assumes your backend properly issues standardized kid and spki blocks matching the ML-KEM-768 parameter specifications.