@lockisecurity/crypto-core — AES-GCM Encryption for JavaScript & TypeScript
Add AES-GCM encryption to your own JavaScript or TypeScript project. @lockisecurity/crypto-core uses the browser-native WebCrypto API with zero external dependencies — the same engine that powers the Locki extension.
AES-128 and AES-256 Support
Generate cryptographically secure keys and encrypt or decrypt any string with AES-128-GCM or AES-256-GCM — the same algorithm used by Locki.
Zero Dependencies
Built entirely on the WebCrypto API. No third-party cryptography libraries, no native bindings — just the runtime you already have.
Full TypeScript Support
Ships with complete type definitions. Works out of the box with TypeScript projects — no additional @types packages needed.
Locki-Compatible Format
Encrypted output is fully compatible with the Locki extension format. Data encrypted in your app can be decrypted in Locki and vice versa.
Secure Key Generation
Generate AES keys of any supported length directly in the browser or Node.js environment using the WebCrypto key generation API.
Start encrypting in minutes
Install @lockisecurity/crypto-core and start protecting data with AES-GCM encryption in your own application today.
Install on npm