@majikah/majik-message 0.1.1
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/LICENSE +67 -0
- package/README.md +559 -0
- package/dist/core/compressor/majik-compressor.d.ts +18 -0
- package/dist/core/compressor/majik-compressor.js +100 -0
- package/dist/core/contacts/majik-contact-directory.d.ts +42 -0
- package/dist/core/contacts/majik-contact-directory.js +203 -0
- package/dist/core/contacts/majik-contact.d.ts +72 -0
- package/dist/core/contacts/majik-contact.js +192 -0
- package/dist/core/crypto/constants.d.ts +8 -0
- package/dist/core/crypto/constants.js +7 -0
- package/dist/core/crypto/crypto-provider.d.ts +21 -0
- package/dist/core/crypto/crypto-provider.js +73 -0
- package/dist/core/crypto/encryption-engine.d.ts +59 -0
- package/dist/core/crypto/encryption-engine.js +257 -0
- package/dist/core/crypto/keystore.d.ts +128 -0
- package/dist/core/crypto/keystore.js +596 -0
- package/dist/core/database/chat/majik-message-chat.d.ts +117 -0
- package/dist/core/database/chat/majik-message-chat.js +513 -0
- package/dist/core/database/chat/types.d.ts +14 -0
- package/dist/core/database/chat/types.js +1 -0
- package/dist/core/database/system/identity.d.ts +61 -0
- package/dist/core/database/system/identity.js +171 -0
- package/dist/core/database/system/utils.d.ts +1 -0
- package/dist/core/database/system/utils.js +8 -0
- package/dist/core/database/thread/enums.d.ts +7 -0
- package/dist/core/database/thread/enums.js +6 -0
- package/dist/core/database/thread/mail/majik-message-mail.d.ts +177 -0
- package/dist/core/database/thread/mail/majik-message-mail.js +704 -0
- package/dist/core/database/thread/majik-message-thread.d.ts +166 -0
- package/dist/core/database/thread/majik-message-thread.js +637 -0
- package/dist/core/messages/envelope-cache.d.ts +52 -0
- package/dist/core/messages/envelope-cache.js +377 -0
- package/dist/core/messages/message-envelope.d.ts +36 -0
- package/dist/core/messages/message-envelope.js +161 -0
- package/dist/core/scanner/scanner-engine.d.ts +27 -0
- package/dist/core/scanner/scanner-engine.js +120 -0
- package/dist/core/types.d.ts +28 -0
- package/dist/core/types.js +1 -0
- package/dist/core/utils/APITranscoder.d.ts +114 -0
- package/dist/core/utils/APITranscoder.js +305 -0
- package/dist/core/utils/idb-majik-system.d.ts +15 -0
- package/dist/core/utils/idb-majik-system.js +44 -0
- package/dist/core/utils/majik-file-utils.d.ts +16 -0
- package/dist/core/utils/majik-file-utils.js +153 -0
- package/dist/core/utils/utilities.d.ts +29 -0
- package/dist/core/utils/utilities.js +94 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +18 -0
- package/dist/majik-message.d.ts +247 -0
- package/dist/majik-message.js +1221 -0
- package/package.json +104 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Copyright (c) 2025 Josef Elijah Delos Santos Fabian
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
Apache License
|
|
18
|
+
Version 2.0, January 2004
|
|
19
|
+
http://www.apache.org/licenses/
|
|
20
|
+
|
|
21
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
22
|
+
|
|
23
|
+
1. Definitions.
|
|
24
|
+
|
|
25
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
26
|
+
|
|
27
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
28
|
+
|
|
29
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
30
|
+
|
|
31
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
32
|
+
|
|
33
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
40
|
+
|
|
41
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
42
|
+
|
|
43
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
44
|
+
|
|
45
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
46
|
+
|
|
47
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
48
|
+
|
|
49
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
50
|
+
|
|
51
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
52
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
53
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
54
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
55
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
56
|
+
|
|
57
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
58
|
+
|
|
59
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
60
|
+
|
|
61
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
62
|
+
|
|
63
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
64
|
+
|
|
65
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
66
|
+
|
|
67
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
ADDED
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
# [Majik Message](https://message.majikah.solutions)
|
|
2
|
+
|
|
3
|
+
[](https://thezelijah.world) 
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
**Majik Message** is a secure messaging platform built on cryptographic identity. Your account *is* your encryption keys—no phone numbers, no passwords, just your 12-word seed phrase and complete privacy.
|
|
7
|
+
|
|
8
|
+
   [](https://opensource.org/licenses/Apache-2.0) 
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
[Read more about Majik Message here](https://majikah.solutions/products/majik-message)
|
|
13
|
+
|
|
14
|
+
[](https://message.majikah.solutions)
|
|
15
|
+
|
|
16
|
+
> Click the image to try Majik Message live.
|
|
17
|
+
|
|
18
|
+
[Read Docs](https://majikah.solutions/products/majik-message/docs)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
[](https://apps.microsoft.com/detail/9pmjgvzzjspn)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
Also available on [Microsoft Store](https://apps.microsoft.com/detail/9pmjgvzzjspn) for free.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
[](https://chromewebstore.google.com/detail/dhlafmkpgjagkhiokoighjaakajbckck)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Also available on [Google Chrome Web Store](https://chromewebstore.google.com/detail/dhlafmkpgjagkhiokoighjaakajbckck) for free.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
- [Majik Message](#majik-message)
|
|
39
|
+
- [Overview](#overview)
|
|
40
|
+
- [What Makes Majik Message Different](#what-makes-majik-message-different)
|
|
41
|
+
- [Key Features](#key-features)
|
|
42
|
+
- [End-to-End Encryption](#end-to-end-encryption)
|
|
43
|
+
- [Seed Phrase–Based Identity](#seed-phrasebased-identity)
|
|
44
|
+
- [Offline Operation](#offline-operation)
|
|
45
|
+
- [Realtime Messaging (Free for Everyone)](#realtime-messaging-free-for-everyone)
|
|
46
|
+
- [Group Messaging](#group-messaging)
|
|
47
|
+
- [Message Expiration Timer](#message-expiration-timer)
|
|
48
|
+
- [Encrypted Message Export](#encrypted-message-export)
|
|
49
|
+
- [Solo Messages for Personal Storage](#solo-messages-for-personal-storage)
|
|
50
|
+
- [Multi-Account Support](#multi-account-support)
|
|
51
|
+
- [Chrome Extension](#chrome-extension)
|
|
52
|
+
- [How It Works](#how-it-works)
|
|
53
|
+
- [Account Creation](#account-creation)
|
|
54
|
+
- [Sending an Encrypted Message](#sending-an-encrypted-message)
|
|
55
|
+
- [For Solo Messages (sender-only):](#for-solo-messages-sender-only)
|
|
56
|
+
- [For Group Messages (2+ recipients):](#for-group-messages-2-recipients)
|
|
57
|
+
- [Receiving and Decrypting a Message](#receiving-and-decrypting-a-message)
|
|
58
|
+
- [Platform Availability](#platform-availability)
|
|
59
|
+
- [Desktop App](#desktop-app)
|
|
60
|
+
- [Web App](#web-app)
|
|
61
|
+
- [Browser Extension](#browser-extension)
|
|
62
|
+
- [Coming Soon](#coming-soon)
|
|
63
|
+
- [Getting Started](#getting-started)
|
|
64
|
+
- [1. Download and Install](#1-download-and-install)
|
|
65
|
+
- [2. Create Your Account](#2-create-your-account)
|
|
66
|
+
- [3. Backup Your Account](#3-backup-your-account)
|
|
67
|
+
- [4. Register for Realtime Messaging (Optional)](#4-register-for-realtime-messaging-optional)
|
|
68
|
+
- [5. Add Contacts](#5-add-contacts)
|
|
69
|
+
- [6. Start Messaging](#6-start-messaging)
|
|
70
|
+
- [Usage Guide](#usage-guide)
|
|
71
|
+
- [Desktop App / Web App](#desktop-app--web-app)
|
|
72
|
+
- [Creating an Account](#creating-an-account)
|
|
73
|
+
- [Encrypting Messages](#encrypting-messages)
|
|
74
|
+
- [Decrypting Messages](#decrypting-messages)
|
|
75
|
+
- [Managing Accounts](#managing-accounts)
|
|
76
|
+
- [Chrome Extension](#chrome-extension-1)
|
|
77
|
+
- [Encrypting Text on Any Webpage](#encrypting-text-on-any-webpage)
|
|
78
|
+
- [Decrypting Text on Any Webpage](#decrypting-text-on-any-webpage)
|
|
79
|
+
- [Automatic Scanning](#automatic-scanning)
|
|
80
|
+
- [Technical Specifications](#technical-specifications)
|
|
81
|
+
- [Cryptography Stack](#cryptography-stack)
|
|
82
|
+
- [Platform \& Infrastructure](#platform--infrastructure)
|
|
83
|
+
- [Messaging Capabilities](#messaging-capabilities)
|
|
84
|
+
- [Security](#security)
|
|
85
|
+
- [What Majik Message Protects](#what-majik-message-protects)
|
|
86
|
+
- [What Users Must Protect](#what-users-must-protect)
|
|
87
|
+
- [What Majik Message Does Not Protect](#what-majik-message-does-not-protect)
|
|
88
|
+
- [Roadmap](#roadmap)
|
|
89
|
+
- [Use Cases](#use-cases)
|
|
90
|
+
- [Privacy-Conscious Individuals](#privacy-conscious-individuals)
|
|
91
|
+
- [Journalists](#journalists)
|
|
92
|
+
- [Professionals Handling Sensitive Data](#professionals-handling-sensitive-data)
|
|
93
|
+
- [Security Researchers and Developers](#security-researchers-and-developers)
|
|
94
|
+
- [Anyone Seeking Digital Autonomy](#anyone-seeking-digital-autonomy)
|
|
95
|
+
- [Pricing](#pricing)
|
|
96
|
+
- [Part of the Majikah Ecosystem](#part-of-the-majikah-ecosystem)
|
|
97
|
+
- [Contributing](#contributing)
|
|
98
|
+
- [License](#license)
|
|
99
|
+
- [Author](#author)
|
|
100
|
+
- [About the Developer](#about-the-developer)
|
|
101
|
+
- [Contact](#contact)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Overview
|
|
107
|
+
|
|
108
|
+
Majik Message replaces traditional username and password accounts with **cryptographic identity**. Messages are encrypted end-to-end using Ed25519 and X25519 elliptic curve cryptography, ensuring only recipients with the correct private keys can decrypt them.
|
|
109
|
+
|
|
110
|
+
Whether online or offline, you maintain full control over your encrypted communications—without relying on centralized infrastructure, personal information, or trusted intermediaries.
|
|
111
|
+
|
|
112
|
+
### What Makes Majik Message Different
|
|
113
|
+
|
|
114
|
+
- **True End-to-End Encryption**: Military-grade encryption using Ed25519 and X25519
|
|
115
|
+
- **Seed Phrase Identity**: No email or phone number required—your 12-word seed phrase is your account
|
|
116
|
+
- **Works Offline**: Encrypt and decrypt messages without internet connection
|
|
117
|
+
- **No Permanent Storage**: Messages automatically expire and are never permanently stored on servers
|
|
118
|
+
- **Multi-Platform**: Desktop app, web app, and Chrome extension
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## Key Features
|
|
122
|
+
|
|
123
|
+
### End-to-End Encryption
|
|
124
|
+
|
|
125
|
+
Majik Message uses proven elliptic curve cryptography:
|
|
126
|
+
|
|
127
|
+
- **Ed25519**: Generates and manages your cryptographic identity
|
|
128
|
+
- **X25519 (Curve25519)**: Handles secure key exchange and message encryption
|
|
129
|
+
- **AES-256-GCM**: Encrypts message content with authenticated encryption
|
|
130
|
+
|
|
131
|
+
Every message is encrypted on your device before transmission and can only be decrypted by the intended recipient. Not even Majik Message servers can access your message content.
|
|
132
|
+
|
|
133
|
+
### Seed Phrase–Based Identity
|
|
134
|
+
|
|
135
|
+
Your account is a 12-word BIP39 mnemonic seed phrase—the same standard used by cryptocurrency wallets:
|
|
136
|
+
|
|
137
|
+
- Each seed phrase deterministically generates an Ed25519 keypair
|
|
138
|
+
- Your public key serves as your account identity and fingerprint
|
|
139
|
+
- Your private key never leaves your device and is never transmitted
|
|
140
|
+
- No email, phone number, or personal information required
|
|
141
|
+
|
|
142
|
+
As long as you have your 12 words, you can recover full access to your identity and decrypt your messages—anywhere, anytime.
|
|
143
|
+
|
|
144
|
+
### Offline Operation
|
|
145
|
+
|
|
146
|
+
Majik Message doesn't require constant connectivity:
|
|
147
|
+
|
|
148
|
+
- **Encrypt messages offline**: Generate encrypted messages without internet access
|
|
149
|
+
- **Decrypt messages offline**: Read previously received messages anytime
|
|
150
|
+
- **Verify identities independently**: Confirm contact fingerprints using cryptographic verification
|
|
151
|
+
|
|
152
|
+
This makes Majik Message ideal for high-security environments, air-gapped systems, or situations where network access is restricted.
|
|
153
|
+
|
|
154
|
+
### Realtime Messaging (Free for Everyone)
|
|
155
|
+
|
|
156
|
+
When online, Majik Message provides instant encrypted messaging:
|
|
157
|
+
|
|
158
|
+
- WebSocket-based realtime delivery
|
|
159
|
+
- Messages stored temporarily in Redis with automatic expiration (24 hours default, expandable to 30 days)
|
|
160
|
+
- Typing indicators and read receipts for active conversations
|
|
161
|
+
- Messages automatically expire and are permanently deleted from servers
|
|
162
|
+
|
|
163
|
+
### Group Messaging
|
|
164
|
+
|
|
165
|
+
Secure group conversations with up to 25 participants:
|
|
166
|
+
|
|
167
|
+
- Each message is individually encrypted for every group member
|
|
168
|
+
- Same security guarantees as one-on-one messaging
|
|
169
|
+
- Typing indicators and read receipts work in group chats
|
|
170
|
+
|
|
171
|
+
### Message Expiration Timer
|
|
172
|
+
|
|
173
|
+
Set custom expiration times for sensitive conversations. Messages automatically delete after the specified duration, reducing your digital footprint.
|
|
174
|
+
|
|
175
|
+
### Encrypted Message Export
|
|
176
|
+
|
|
177
|
+
Messages can be exported as encrypted Base64 strings:
|
|
178
|
+
|
|
179
|
+
- Download and archive encrypted messages locally
|
|
180
|
+
- Share encrypted content through any channel (email, file storage, etc.)
|
|
181
|
+
- Messages remain fully encrypted outside the platform
|
|
182
|
+
|
|
183
|
+
### Solo Messages for Personal Storage
|
|
184
|
+
|
|
185
|
+
Encrypt messages where you are the only recipient—perfect for private notes and journals:
|
|
186
|
+
|
|
187
|
+
- Sender-only encryption for personal storage and archival
|
|
188
|
+
- Works entirely offline in local mode (Message tab)
|
|
189
|
+
- Perfect for encrypted journals, notes, passwords, or sensitive information
|
|
190
|
+
- Export as encrypted Base64 strings for backup or transfer
|
|
191
|
+
|
|
192
|
+
### Multi-Account Support
|
|
193
|
+
|
|
194
|
+
Manage multiple cryptographic identities for different contexts:
|
|
195
|
+
|
|
196
|
+
| Account Type | Local Storage | Online Registration |
|
|
197
|
+
| ------------ | ----------------- | ------------------- |
|
|
198
|
+
| Free Users | Up to 25 accounts | 5 accounts |
|
|
199
|
+
| Paid Users | Up to 25 accounts | 10 accounts |
|
|
200
|
+
|
|
201
|
+
**What this means:**
|
|
202
|
+
- **Local accounts** can encrypt and decrypt messages offline but cannot send/receive realtime messages
|
|
203
|
+
- **Registered accounts** have full access to realtime messaging, typing indicators, and online features
|
|
204
|
+
- You can swap which accounts are registered online at any time
|
|
205
|
+
|
|
206
|
+
### Chrome Extension
|
|
207
|
+
|
|
208
|
+
Available on the Google Chrome Web Store:
|
|
209
|
+
|
|
210
|
+
- Browser-based encryption and decryption
|
|
211
|
+
- DOM scanning: Automatically detect encrypted messages on any webpage and decrypt them inline
|
|
212
|
+
- Offline-only operation: Designed for local encryption/decryption workflows
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## How It Works
|
|
217
|
+
|
|
218
|
+
### Account Creation
|
|
219
|
+
|
|
220
|
+
When you create a Majik Message account:
|
|
221
|
+
|
|
222
|
+
1. A 12-word BIP39 mnemonic seed phrase is generated using cryptographically secure random number generation
|
|
223
|
+
2. The seed phrase deterministically generates an Ed25519 keypair
|
|
224
|
+
3. The Ed25519 keys are converted to X25519 (Curve25519) keys for encryption
|
|
225
|
+
4. Your public key is hashed (SHA-256) to create your account fingerprint
|
|
226
|
+
5. Your private key is encrypted with a passphrase (PBKDF2-SHA256, 250k iterations) and stored locally in IndexedDB
|
|
227
|
+
|
|
228
|
+
**Critical security note:** Your seed phrase and private key never leave your device. The passphrase you set protects your encrypted private key in local storage.
|
|
229
|
+
|
|
230
|
+
### Sending an Encrypted Message
|
|
231
|
+
|
|
232
|
+
#### For Solo Messages (sender-only):
|
|
233
|
+
|
|
234
|
+
1. An ephemeral X25519 keypair is generated for this message only
|
|
235
|
+
2. A shared secret is computed using your ephemeral private key and your own public key (ECDH)
|
|
236
|
+
3. The shared secret is hashed (SHA-256) to derive a 256-bit AES key
|
|
237
|
+
4. Your message is encrypted with AES-256-GCM using the derived key and a random 12-byte IV
|
|
238
|
+
5. The encrypted message, IV, and ephemeral public key are packaged and stored locally
|
|
239
|
+
|
|
240
|
+
#### For Group Messages (2+ recipients):
|
|
241
|
+
|
|
242
|
+
1. A random 256-bit AES key is generated for the message
|
|
243
|
+
2. The message is encrypted once with AES-256-GCM
|
|
244
|
+
3. An ephemeral X25519 keypair is generated
|
|
245
|
+
4. The AES key is individually encrypted for each recipient using X25519 shared secrets
|
|
246
|
+
|
|
247
|
+
This ensures only authorized recipients can decrypt the message, and the ephemeral key prevents long-term compromise.
|
|
248
|
+
|
|
249
|
+
### Receiving and Decrypting a Message
|
|
250
|
+
|
|
251
|
+
1. Your device retrieves the encrypted payload from the server or extracts it from the DOM (browser extension)
|
|
252
|
+
2. The message fingerprint identifies which of your accounts should decrypt it
|
|
253
|
+
3. Your private key is unlocked by decrypting it with your passphrase
|
|
254
|
+
4. A shared secret is computed using your private key and the sender's ephemeral public key
|
|
255
|
+
5. The AES key is derived from the shared secret (SHA-256)
|
|
256
|
+
6. The message is decrypted using AES-256-GCM with the derived key and the provided IV
|
|
257
|
+
|
|
258
|
+
If decryption fails (due to tampering or incorrect keys), an authentication error is thrown and the message is rejected.
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Platform Availability
|
|
263
|
+
|
|
264
|
+
### Desktop App
|
|
265
|
+
- **Windows**: Microsoft Store or GitHub Releases
|
|
266
|
+
- **macOS**: GitHub Releases
|
|
267
|
+
- **Linux**: GitHub Releases
|
|
268
|
+
|
|
269
|
+
### Web App
|
|
270
|
+
- Access at: [https://message.majikah.solutions](https://message.majikah.solutions)
|
|
271
|
+
|
|
272
|
+
### Browser Extension
|
|
273
|
+
- **Chrome**: [Chrome Web Store](https://chromewebstore.google.com/detail/majik-message/dhlafmkpgjagkhiokoighjaakajbckck)
|
|
274
|
+
|
|
275
|
+
### Coming Soon
|
|
276
|
+
- iOS app
|
|
277
|
+
- Android app
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## Getting Started
|
|
282
|
+
|
|
283
|
+
### 1. Download and Install
|
|
284
|
+
|
|
285
|
+
Choose your platform:
|
|
286
|
+
|
|
287
|
+
- **Desktop (Windows)**: [Microsoft Store](https://apps.microsoft.com/detail/9PMJGVZZJSPN) or [GitHub Releases](https://github.com/Majikah/majik-message/releases)
|
|
288
|
+
- **Web App**: [message.majikah.solutions](https://message.majikah.solutions)
|
|
289
|
+
- **Chrome Extension**: [Chrome Web Store](https://chromewebstore.google.com/detail/majik-message/dhlafmkpgjagkhiokoighjaakajbckck)
|
|
290
|
+
|
|
291
|
+
### 2. Create Your Account
|
|
292
|
+
|
|
293
|
+
1. Launch Majik Message
|
|
294
|
+
2. A 12-word seed phrase will be automatically generated
|
|
295
|
+
- You may regenerate a new seed phrase at any time by clicking the dice icon
|
|
296
|
+
3. Enter a display name (optional - your public key address will be used by default if left empty)
|
|
297
|
+
4. Enter a strong password, then click **Apply** to create the account
|
|
298
|
+
5. Upon creation, a JSON backup file will be downloaded automatically
|
|
299
|
+
- **Important:** Keep this file secure and private. Anyone with access to this backup can open your account and decrypt your messages.
|
|
300
|
+
|
|
301
|
+
### 3. Backup Your Account
|
|
302
|
+
|
|
303
|
+
- Your backup file downloads automatically upon account creation
|
|
304
|
+
- Store it securely offline
|
|
305
|
+
- This is the ONLY way to recover your account if needed
|
|
306
|
+
|
|
307
|
+
### 4. Register for Realtime Messaging (Optional)
|
|
308
|
+
|
|
309
|
+
To use realtime chat features:
|
|
310
|
+
|
|
311
|
+
**From the Accounts tab:**
|
|
312
|
+
- Hover over an account and click 'Register Online' in the action menu
|
|
313
|
+
|
|
314
|
+
**From the Majikah tab:**
|
|
315
|
+
- Find 'Registered Identities' section and click the Plus (+) icon to register an existing local account
|
|
316
|
+
|
|
317
|
+
**Note:** Registration is only needed for realtime chat. Local encryption/decryption works without registration.
|
|
318
|
+
|
|
319
|
+
### 5. Add Contacts
|
|
320
|
+
|
|
321
|
+
1. Open the Side Panel
|
|
322
|
+
2. Go to the **Contacts** tab
|
|
323
|
+
3. Click the **Add Friend** icon
|
|
324
|
+
4. Paste the other user's invite key
|
|
325
|
+
|
|
326
|
+
Or share your own invite key:
|
|
327
|
+
1. Go to the **Accounts** tab
|
|
328
|
+
2. Hover over your account
|
|
329
|
+
3. Click the **Share** icon
|
|
330
|
+
4. Copy and share your invite key
|
|
331
|
+
|
|
332
|
+
### 6. Start Messaging
|
|
333
|
+
|
|
334
|
+
- **For realtime chat**: Use the 'Chats' tab (requires at least 2 participants including yourself)
|
|
335
|
+
- **For local encryption**: Use the 'Message' tab to encrypt messages offline and share through any channel
|
|
336
|
+
- **Pro tip**: You can encrypt solo messages (only yourself as recipient) for personal storage like journals or notes—available only in local mode
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## Usage Guide
|
|
341
|
+
|
|
342
|
+
### Desktop App / Web App
|
|
343
|
+
|
|
344
|
+
#### Creating an Account
|
|
345
|
+
|
|
346
|
+
1. Open Majik Message
|
|
347
|
+
2. A seed phrase will be automatically generated (click the dice icon to regenerate)
|
|
348
|
+
3. Enter a display name and password
|
|
349
|
+
4. Click **Apply** to create the account
|
|
350
|
+
5. Save the downloaded JSON backup file securely
|
|
351
|
+
|
|
352
|
+
#### Encrypting Messages
|
|
353
|
+
|
|
354
|
+
**In the Message Tab (Local Mode):**
|
|
355
|
+
1. Toggle mode to **Encrypt**
|
|
356
|
+
2. Choose recipients (yourself only, or add contacts)
|
|
357
|
+
3. Enter your text
|
|
358
|
+
4. Choose output: Copy to clipboard, download as .txt, or download as .json
|
|
359
|
+
|
|
360
|
+
**In Realtime Chat:**
|
|
361
|
+
1. Select a conversation or create a new one
|
|
362
|
+
2. Type your message
|
|
363
|
+
3. Click send - the message is automatically encrypted before transmission
|
|
364
|
+
|
|
365
|
+
#### Decrypting Messages
|
|
366
|
+
|
|
367
|
+
**In the Message Tab:**
|
|
368
|
+
1. Toggle mode to **Decrypt**
|
|
369
|
+
2. Paste the encrypted text
|
|
370
|
+
3. View the decrypted message
|
|
371
|
+
|
|
372
|
+
**In Realtime Chat:**
|
|
373
|
+
- Messages are automatically decrypted when received
|
|
374
|
+
|
|
375
|
+
#### Managing Accounts
|
|
376
|
+
|
|
377
|
+
- **Switch accounts**: Click on any account in the Accounts tab
|
|
378
|
+
- **Register online**: Hover over account → Register Online
|
|
379
|
+
- **Share invite key**: Hover over account → Share icon
|
|
380
|
+
- **Export backup**: Hover over account → Export
|
|
381
|
+
- **Import account**: Accounts tab → Import Account button
|
|
382
|
+
|
|
383
|
+
### Chrome Extension
|
|
384
|
+
|
|
385
|
+
#### Encrypting Text on Any Webpage
|
|
386
|
+
|
|
387
|
+
1. Highlight the text you want to encrypt
|
|
388
|
+
2. Right-click to open the context menu
|
|
389
|
+
3. Select **Majik Message → Encrypt**
|
|
390
|
+
4. Choose to encrypt for yourself or a specific contact
|
|
391
|
+
|
|
392
|
+
The selected text will be replaced with an encrypted string.
|
|
393
|
+
|
|
394
|
+
#### Decrypting Text on Any Webpage
|
|
395
|
+
|
|
396
|
+
**Decrypt Selected Text:**
|
|
397
|
+
1. Highlight the encrypted text
|
|
398
|
+
2. Right-click → **Majik Message → Decrypt**
|
|
399
|
+
|
|
400
|
+
**Decrypt Entire Page:**
|
|
401
|
+
1. Right-click anywhere on the page
|
|
402
|
+
2. Select **Majik Message → Decrypt Page**
|
|
403
|
+
|
|
404
|
+
All valid encrypted strings on the page will be decrypted.
|
|
405
|
+
|
|
406
|
+
#### Automatic Scanning
|
|
407
|
+
|
|
408
|
+
Enable automatic detection and decryption:
|
|
409
|
+
|
|
410
|
+
1. Open the Side Panel
|
|
411
|
+
2. Go to the **Scanner** tab
|
|
412
|
+
3. Enable **Scan**
|
|
413
|
+
4. Enter your account password when prompted
|
|
414
|
+
|
|
415
|
+
Once enabled, any page you load will be automatically scanned for encrypted content.
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
## Technical Specifications
|
|
420
|
+
|
|
421
|
+
### Cryptography Stack
|
|
422
|
+
|
|
423
|
+
| Component | Implementation |
|
|
424
|
+
| --------------------------- | ------------------------------------------- |
|
|
425
|
+
| Identity Generation | Ed25519 (EdDSA on Curve25519) |
|
|
426
|
+
| Key Exchange | X25519 (ECDH on Curve25519) |
|
|
427
|
+
| Symmetric Encryption | AES-256-GCM (authenticated encryption) |
|
|
428
|
+
| Hash Function | SHA-256 |
|
|
429
|
+
| Key Derivation (Passphrase) | PBKDF2-SHA256 (250,000 iterations) |
|
|
430
|
+
| Key Derivation (Mnemonic) | PBKDF2-SHA256 (200,000 iterations) |
|
|
431
|
+
| Mnemonic Standard | BIP39 (12-word seed phrases) |
|
|
432
|
+
| Random Number Generation | Browser crypto.getRandomValues (CSPRNG) |
|
|
433
|
+
| Fingerprint | SHA-256 hash of public key (Base64-encoded) |
|
|
434
|
+
|
|
435
|
+
All cryptographic operations use the **@stablelib** library suite for consistent, auditable implementations across platforms.
|
|
436
|
+
|
|
437
|
+
### Platform & Infrastructure
|
|
438
|
+
|
|
439
|
+
| Component | Technology |
|
|
440
|
+
| ------------------ | -------------------------------------------- |
|
|
441
|
+
| Realtime Messaging | WebSocket |
|
|
442
|
+
| Message Storage | Redis with TTL (24h default, max 30 days) |
|
|
443
|
+
| Data Persistence | No permanent server-side storage |
|
|
444
|
+
| Local Storage | IndexedDB (encrypted private keys, contacts) |
|
|
445
|
+
| Desktop App | Microsoft Store, GitHub Releases |
|
|
446
|
+
| Browser Extension | Google Chrome (Chrome Web Store) |
|
|
447
|
+
|
|
448
|
+
**Important:** Messages are automatically deleted from Redis after expiration. Majik Message servers never retain message content permanently and cannot decrypt messages even during temporary storage.
|
|
449
|
+
|
|
450
|
+
### Messaging Capabilities
|
|
451
|
+
|
|
452
|
+
| Feature | Status |
|
|
453
|
+
| ------------------ | ------------------------- |
|
|
454
|
+
| Text Messages | ✓ Supported |
|
|
455
|
+
| Group Chats | ✓ Up to 25 participants |
|
|
456
|
+
| Typing Indicators | ✓ Supported |
|
|
457
|
+
| Read Receipts | ✓ Supported |
|
|
458
|
+
| Message Expiration | ✓ Custom timers available |
|
|
459
|
+
| File/Image Sharing | ⧗ Coming soon |
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
463
|
+
## Security
|
|
464
|
+
|
|
465
|
+
### What Majik Message Protects
|
|
466
|
+
|
|
467
|
+
- **Message content**: End-to-end encrypted with AES-256-GCM
|
|
468
|
+
- **Identity privacy**: No phone numbers or email addresses required
|
|
469
|
+
- **Private keys**: Never transmitted; encrypted at rest with PBKDF2-derived passphrase
|
|
470
|
+
- **Forward secrecy**: Ephemeral keys ensure past messages remain secure even if current keys are compromised
|
|
471
|
+
|
|
472
|
+
### What Users Must Protect
|
|
473
|
+
|
|
474
|
+
- **Your 12-word seed phrase**: This is the ONLY way to recover your account. If lost, your account and messages are permanently inaccessible. Store it securely offline.
|
|
475
|
+
- **Your passphrase**: Protects your locally stored private key. Choose a strong, unique passphrase.
|
|
476
|
+
- **Device security**: If your device is compromised while your account is unlocked, an attacker could access your private keys.
|
|
477
|
+
|
|
478
|
+
### What Majik Message Does Not Protect
|
|
479
|
+
|
|
480
|
+
- **Metadata**: Timing, message frequency, and participant relationships may be visible to servers or network observers
|
|
481
|
+
- **IP addresses**: Your IP address is visible to Majik Message servers when you connect for realtime messaging
|
|
482
|
+
- **Device compromise**: If malware or an attacker gains access to your unlocked device, they may access decrypted messages or private keys
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
486
|
+
## Roadmap
|
|
487
|
+
|
|
488
|
+
Majik Message is under active development. Planned features include:
|
|
489
|
+
|
|
490
|
+
- **File and image sharing** (Coming soon): Send encrypted files and images directly through Majik Message
|
|
491
|
+
- **Voice messages** (Coming soon): Encrypted audio recording and playback
|
|
492
|
+
- **Mobile apps** (Planned): Native iOS and Android applications
|
|
493
|
+
- **Paid tiers** (Coming soon): Subscription and pay-as-you-go options with increased account limits and extended message retention
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
## Use Cases
|
|
498
|
+
|
|
499
|
+
### Privacy-Conscious Individuals
|
|
500
|
+
If you want secure messaging without linking your phone number or email address, Majik Message provides true anonymity.
|
|
501
|
+
|
|
502
|
+
### Journalists
|
|
503
|
+
Communicate with sources securely. The offline encryption capability allows you to exchange encrypted messages through air-gapped systems.
|
|
504
|
+
|
|
505
|
+
### Professionals Handling Sensitive Data
|
|
506
|
+
Lawyers, healthcare providers, researchers, and other professionals can communicate confidentially without relying on third-party platforms.
|
|
507
|
+
|
|
508
|
+
### Security Researchers and Developers
|
|
509
|
+
Majik Message's cryptographic implementation is transparent and uses well-audited libraries (@stablelib).
|
|
510
|
+
|
|
511
|
+
### Anyone Seeking Digital Autonomy
|
|
512
|
+
If you believe your communications should be private by default and you want full control over your identity and data, Majik Message is designed for you.
|
|
513
|
+
|
|
514
|
+
---
|
|
515
|
+
|
|
516
|
+
## Pricing
|
|
517
|
+
|
|
518
|
+
Majik Message is currently **free for all users**. Realtime messaging, encryption, and all core features are available at no cost.
|
|
519
|
+
|
|
520
|
+
**Coming soon:** Paid subscription and pay-as-you-go models with expanded account limits and additional features will be available in the future.
|
|
521
|
+
|
|
522
|
+
---
|
|
523
|
+
|
|
524
|
+
## Part of the Majikah Ecosystem
|
|
525
|
+
|
|
526
|
+
Majik Message is a flagship product within the Majikah system—a suite of privacy-focused, user-controlled tools designed to give individuals full ownership of their digital communications and data.
|
|
527
|
+
|
|
528
|
+
All Majikah products share the same core principles: cryptographic identity, zero-knowledge architecture, and user sovereignty over personal information.
|
|
529
|
+
|
|
530
|
+
---
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
## Contributing
|
|
534
|
+
|
|
535
|
+
If you want to contribute or help extend support to more platforms, reach out via email. All contributions are welcome!
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
## License
|
|
540
|
+
|
|
541
|
+
[Apache-2.0](LICENSE) — free for personal and commercial use.
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
## Author
|
|
545
|
+
|
|
546
|
+
Made with 💙 by [@thezelijah](https://github.com/jedlsf)
|
|
547
|
+
|
|
548
|
+
## About the Developer
|
|
549
|
+
|
|
550
|
+
- **Developer**: Josef Elijah Fabian
|
|
551
|
+
- **GitHub**: [https://github.com/jedlsf](https://github.com/jedlsf)
|
|
552
|
+
- **Project Repository**: [https://github.com/Majikah/majik-message](https://github.com/Majikah/majik-message)
|
|
553
|
+
|
|
554
|
+
---
|
|
555
|
+
|
|
556
|
+
## Contact
|
|
557
|
+
|
|
558
|
+
- **Business Email**: [business@thezelijah.world](mailto:business@thezelijah.world)
|
|
559
|
+
- **Official Website**: [https://www.thezelijah.world](https://www.thezelijah.world)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type SupportedInput = string | object | ArrayBuffer | Uint8Array;
|
|
2
|
+
export type MajikCompressorType = "str" | "json" | "blob";
|
|
3
|
+
export type CompressionMode = "binary" | "plaintext";
|
|
4
|
+
export declare class MajikCompressor {
|
|
5
|
+
private static PREFIX;
|
|
6
|
+
private static initialized;
|
|
7
|
+
private static ensureInit;
|
|
8
|
+
private static encodeInput;
|
|
9
|
+
private static decodeOutput;
|
|
10
|
+
static compress(mode: CompressionMode, input: SupportedInput, level?: number): Promise<string>;
|
|
11
|
+
static decompress(mode: CompressionMode, compressedStr: string): Promise<string | Record<string, any> | Uint8Array>;
|
|
12
|
+
static decompressJSON(compressedStr: string): Promise<Record<string, any>>;
|
|
13
|
+
static decompressString(compressedStr: string): Promise<string>;
|
|
14
|
+
static decompressBlob(compressedStr: string): Promise<Uint8Array>;
|
|
15
|
+
private static uint8ArrayToBase64;
|
|
16
|
+
private static base64ToUint8Array;
|
|
17
|
+
}
|
|
18
|
+
export {};
|