@apislash/cryptobox-native
v1.0.0
Published
Quantum-resistant crypto provider for React Native / Expo (ML-KEM-768/1024 hybrid + Expo SecureStore key persistence). Usable in any RN/Expo app — published by Apislash.
Readme
@apislash/cryptobox-native
Quantum-resistant crypto provider for React Native / Expo — part of CryptoBox. ML-KEM-768/1024 hybrid + Expo SecureStore key persistence. Usable in any RN/Expo app; published by Apislash.
Install
npm install @apislash/cryptobox-nativeUsage
import { createNativeCryptoProvider, createNativeKeyProvider } from "@apislash/cryptobox-native";
import * as SecureStore from "expo-secure-store";
const crypto = createNativeCryptoProvider();
const keys = createNativeKeyProvider({ secureStore: SecureStore });
const key = await keys.generateKey();
const envelope = await crypto.encrypt(key, new TextEncoder().encode("hello"));
const plaintext = await crypto.decrypt(key, envelope);Pass any ExpoSecureStoreLike implementation. Use detectNativeCryptoCapabilities() to check support. Interfaces come from @apislash/cryptobox-core.
MIT © Apislash
