@tamer4lynx/tamer-crypto
Web Crypto–shaped API for Lynx with native iOS/Android crypto. Supports SHA, AES-GCM, HMAC, PBKDF2, HKDF, ECDSA P-256, and RSA-OAEP via native modules with a JS fallback.
Install
Usage
Polyfill globalThis.crypto
The easiest integration — patches globalThis.crypto so existing code using the Web Crypto API works without changes:
Explicit instance
TamerCrypto class
SubtleCrypto operations
All subtle methods follow the Web Crypto spec. Supported algorithms:
wrapKey and unwrapKey are not supported.
API
Native fallback
When the native module (TamerCryptoModule) is unavailable, getTamerCrypto() falls back to globalThis.crypto if present, then to the JS implementation. hasNativeCrypto() lets you branch on availability.
