@majikah/majik-key 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ Every identity now generates a dual-key system derived deterministically from a
|
|
|
98
98
|
|
|
99
99
|
### 2. Argon2id Key Derivation
|
|
100
100
|
We have transitioned to **Argon2id** (KDF v2) for encrypting private keys at rest.
|
|
101
|
-
* **Memory-Hard:** Configured with
|
|
101
|
+
* **Memory-Hard:** Configured with 64 MB of memory, 3 iterations, and 4 parallelism factors.
|
|
102
102
|
* **Brute-Force Resistant:** Engineered to defeat GPU and ASIC-based cracking attempts that easily bypass older PBKDF2 implementations.
|
|
103
103
|
|
|
104
104
|
### 3. Seamless Auto-Migration
|
|
@@ -137,7 +137,7 @@ A Majik Key is a seed phrase account that:
|
|
|
137
137
|
|
|
138
138
|
### Security & Post-Quantum Readiness
|
|
139
139
|
- **Post-Quantum Ready**: Implements **ML-KEM-768 (FIPS-203)** for key encapsulation, ensuring identities are secure against future quantum computing threats.
|
|
140
|
-
- **Argon2id Key Derivation**: Uses memory-hard **Argon2id** (KDF v2) for passphrase encryption (
|
|
140
|
+
- **Argon2id Key Derivation**: Uses memory-hard **Argon2id** (KDF v2) for passphrase encryption (64 MB / 3 iterations / 4 parallelism), providing industry-leading resistance to GPU/ASIC brute-force attacks.
|
|
141
141
|
- **Seamless Auto-Migration**: Automatically detects and upgrades legacy v1 (PBKDF2) accounts to v2 (Argon2id) during import, re-deriving missing ML-KEM keys deterministically from the seed.
|
|
142
142
|
- **AES-GCM Authenticated Encryption**: Industry-standard encryption for private keys at rest with unique, per-identity salts and random IVs.
|
|
143
143
|
- **Locked/Unlocked States**: Private keys are only decrypted into memory when explicitly unlocked and are purged immediately upon calling `.lock()`.
|
|
@@ -833,7 +833,7 @@ async function createMessageIdentity() {
|
|
|
833
833
|
3. **PQ Readiness**: For all new communication protocols, ensure you are utilizing the mlKemPublicKey.
|
|
834
834
|
|
|
835
835
|
Security Summary
|
|
836
|
-
- **Primary KDF**: Argon2id (
|
|
836
|
+
- **Primary KDF**: Argon2id (64 / 3t / 4p).
|
|
837
837
|
|
|
838
838
|
- **Legacy KDF**: PBKDF2-SHA256 (250,000 iterations).
|
|
839
839
|
|
|
@@ -893,7 +893,7 @@ Secure messaging platform using Majik Keys
|
|
|
893
893
|
|
|
894
894
|
[Read more about Majik Message here](https://majikah.solutions/products/majik-message)
|
|
895
895
|
|
|
896
|
-
[](https://message.majikah.solutions)
|
|
897
897
|
|
|
898
898
|
> Click the image to try Majik Message live.
|
|
899
899
|
|
|
@@ -41,8 +41,8 @@ export type KDF_VERSION = (typeof KDF_VERSION)[keyof typeof KDF_VERSION];
|
|
|
41
41
|
*/
|
|
42
42
|
export declare const ARGON2_PARAMS: {
|
|
43
43
|
readonly PASSPHRASE: {
|
|
44
|
-
readonly m:
|
|
45
|
-
readonly t:
|
|
44
|
+
readonly m: 65536;
|
|
45
|
+
readonly t: 3;
|
|
46
46
|
readonly p: 4;
|
|
47
47
|
readonly dkLen: 32;
|
|
48
48
|
};
|
|
@@ -37,8 +37,8 @@ export const KDF_VERSION = {
|
|
|
37
37
|
*/
|
|
38
38
|
export const ARGON2_PARAMS = {
|
|
39
39
|
PASSPHRASE: {
|
|
40
|
-
m:
|
|
41
|
-
t:
|
|
40
|
+
m: 65536, // memory in KB (128 MB)
|
|
41
|
+
t: 3, // time cost (passes)
|
|
42
42
|
p: 4, // parallelism (lanes)
|
|
43
43
|
dkLen: 32, // output length in bytes (256-bit AES key)
|
|
44
44
|
},
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@majikah/majik-key",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "A post-quantum ready seed phrase account library for the Majikah ecosystem. Manages deterministic X25519 and ML-KEM-768 identities with Argon2id protection and seamless legacy account migration.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|