Kinetic Keys Javascript SDK Documentation
Kinetic Keys SDK
Kinetic Keys (KK) is a novel cryptographic framework that enables secure, privacy-preserving digital transactions without exposing sensitive underlying data. Unlike traditional zero-knowledge proofs (ZKPs) that impose significant computational overhead, Kinetic Keys achieves comparable security guarantees through hierarchical key derivation, deterministic encryption, and structured hashing techniques. The system provides a deterministic yet tamper-resistant mechanism for issuing, transferring, and verifying digital assets with minimal computational requirements.
This SDK includes a set of utilities for generating secure keys, encrypting/decrypting payloads, managing unlock hashes, and reconstructing content using granular poem-based key derivation.
β¨ Features
π Generate unique unlock hashes (single or dual mode)
π Verify unlock hashes
β οΈ Environment
This SDK is for use in Node.js environments only. Browser-based environments are currently unsupported.
π Generate Unlock Hashes
The foundation of Kinetic Keys is the Unlock Hash (UH), a secure, non-reversible transformation of a user's secret passphrase. The UH serves as the cryptographic anchor for all subsequent operations.
Single Mode
Dual Mode
The dual mode allows a voucher or transaction to be unlocked using two separate passphrases:
β
Verify Unlock Hashes
π¦ Create Kinetic Key Voucher
Encapsulate sensitive data within a voucher that can only be decrypted using the correct passphrase.
π Decrypt Kinetic Key Voucher
Dual Unlock Example
π Key Derivation Using Poem Matrix
The poem-matrix-based approach generates encryption keys by selecting randomized segments from a matrix of strings, enabling secure transmission of sensitive data with only a reconstruction blueprint.
Generate Poem Matrix
Derive Key and Blueprint
Reconstruct Text
π Unique ID Generation
The Kinetic Keys SDK includes a utility to generate unique identifiers using a cryptographically secure random generator based on nanoid. These IDs are useful for generating unique voucher IDs, session tokens, or user identifiers within the Kinetic Key system.
β¨ Features
Generates cryptographically secure, non-sequential IDs
Customizable character set and length
Lightweight and efficient
π¦ generateUniqueID
Generates a unique alphanumeric ID of the specified length. Internally, it uses a custom character set including special characters for added entropy.
Syntax
Parameters
length(number): The desired length of the unique ID.
Returns
Promise<string>: A promise that resolves to the generated unique ID.
Example
Under the Hood
This function wraps around the nanoid library using the customAlphabet method to create a secure, flexible ID generator with a rich character set:
This makes the output suitable for high-entropy requirements in security-sensitive contexts.
β Environment
Requires Node.js. Not available for browser-based use.
Β© 2025 Projekt Kinetic. All rights reserved.
Initial Publish Date: 25-04-2025. Emmanuel Ayodele Bello
Last updated