nexvault 0.1.0__tar.gz

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.
nexvault-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,395 @@
1
+ Metadata-Version: 2.3
2
+ Name: nexvault
3
+ Version: 0.1.0
4
+ Summary: Nexvault is a simple, secure, and developer-friendly vault for managing your sensitive secrets locally.
5
+ Author: Nexment
6
+ License:
7
+ Apache License
8
+ Version 2.0, January 2004
9
+ http://www.apache.org/licenses/
10
+
11
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
12
+
13
+ 1. Definitions.
14
+
15
+ "License" shall mean the terms and conditions for use, reproduction,
16
+ and distribution as defined by Sections 1 through 9 of this document.
17
+
18
+ "Licensor" shall mean the copyright owner or entity authorized by
19
+ the copyright owner that is granting the License.
20
+
21
+ "Legal Entity" shall mean the union of the acting entity and all
22
+ other entities that control, are controlled by, or are under common
23
+ control with that entity. For the purposes of this definition,
24
+ "control" means (i) the power, direct or indirect, to cause the
25
+ direction or management of such entity, whether by contract or
26
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
27
+ outstanding shares, or (iii) beneficial ownership of such entity.
28
+
29
+ "You" (or "Your") shall mean an individual or Legal Entity
30
+ exercising permissions granted by this License.
31
+
32
+ "Source" form shall mean the preferred form for making modifications,
33
+ including but not limited to software source code, documentation
34
+ source, and configuration files.
35
+
36
+ "Object" form shall mean any form resulting from mechanical
37
+ transformation or translation of a Source form, including but
38
+ not limited to compiled object code, generated documentation,
39
+ and conversions to other media types.
40
+
41
+ "Work" shall mean the work of authorship, whether in Source or
42
+ Object form, made available under the License, as indicated by a
43
+ copyright notice that is included in or attached to the work
44
+ (an example is provided in the Appendix below).
45
+
46
+ "Derivative Works" shall mean any work, whether in Source or Object
47
+ form, that is based on (or derived from) the Work and for which the
48
+ editorial revisions, annotations, elaborations, or other modifications
49
+ represent, as a whole, an original work of authorship. For the purposes
50
+ of this License, Derivative Works shall not include works that remain
51
+ separable from, or merely link (or bind by name) to the interfaces of,
52
+ the Work and Derivative Works thereof.
53
+
54
+ "Contribution" shall mean any work of authorship, including
55
+ the original version of the Work and any modifications or additions
56
+ to that Work or Derivative Works thereof, that is intentionally
57
+ submitted to Licensor for inclusion in the Work by the copyright owner
58
+ or by an individual or Legal Entity authorized to submit on behalf of
59
+ the copyright owner. For the purposes of this definition, "submitted"
60
+ means any form of electronic, verbal, or written communication sent
61
+ to the Licensor or its representatives, including but not limited to
62
+ communication on electronic mailing lists, source code control systems,
63
+ and issue tracking systems that are managed by, or on behalf of, the
64
+ Licensor for the purpose of discussing and improving the Work, but
65
+ excluding communication that is conspicuously marked or otherwise
66
+ designated in writing by the copyright owner as "Not a Contribution."
67
+
68
+ "Contributor" shall mean Licensor and any individual or Legal Entity
69
+ on behalf of whom a Contribution has been received by Licensor and
70
+ subsequently incorporated within the Work.
71
+
72
+ 2. Grant of Copyright License. Subject to the terms and conditions of
73
+ this License, each Contributor hereby grants to You a perpetual,
74
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75
+ copyright license to reproduce, prepare Derivative Works of,
76
+ publicly display, publicly perform, sublicense, and distribute the
77
+ Work and such Derivative Works in Source or Object form.
78
+
79
+ 3. Grant of Patent License. Subject to the terms and conditions of
80
+ this License, each Contributor hereby grants to You a perpetual,
81
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
+ (except as stated in this section) patent license to make, have made,
83
+ use, offer to sell, sell, import, and otherwise transfer the Work,
84
+ where such license applies only to those patent claims licensable
85
+ by such Contributor that are necessarily infringed by their
86
+ Contribution(s) alone or by combination of their Contribution(s)
87
+ with the Work to which such Contribution(s) was submitted. If You
88
+ institute patent litigation against any entity (including a
89
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
90
+ or a Contribution incorporated within the Work constitutes direct
91
+ or contributory patent infringement, then any patent licenses
92
+ granted to You under this License for that Work shall terminate
93
+ as of the date such litigation is filed.
94
+
95
+ 4. Redistribution. You may reproduce and distribute copies of the
96
+ Work or Derivative Works thereof in any medium, with or without
97
+ modifications, and in Source or Object form, provided that You
98
+ meet the following conditions:
99
+
100
+ (a) You must give any other recipients of the Work or
101
+ Derivative Works a copy of this License; and
102
+
103
+ (b) You must cause any modified files to carry prominent notices
104
+ stating that You changed the files; and
105
+
106
+ (c) You must retain, in the Source form of any Derivative Works
107
+ that You distribute, all copyright, patent, trademark, and
108
+ attribution notices from the Source form of the Work,
109
+ excluding those notices that do not pertain to any part of
110
+ the Derivative Works; and
111
+
112
+ (d) If the Work includes a "NOTICE" text file as part of its
113
+ distribution, then any Derivative Works that You distribute must
114
+ include a readable copy of the attribution notices contained
115
+ within such NOTICE file, excluding those notices that do not
116
+ pertain to any part of the Derivative Works, in at least one
117
+ of the following places: within a NOTICE text file distributed
118
+ as part of the Derivative Works; within the Source form or
119
+ documentation, if provided along with the Derivative Works; or,
120
+ within a display generated by the Derivative Works, if and
121
+ wherever such third-party notices normally appear. The contents
122
+ of the NOTICE file are for informational purposes only and
123
+ do not modify the License. You may add Your own attribution
124
+ notices within Derivative Works that You distribute, alongside
125
+ or as an addendum to the NOTICE text from the Work, provided
126
+ that such additional attribution notices cannot be construed
127
+ as modifying the License.
128
+
129
+ You may add Your own copyright statement to Your modifications and
130
+ may provide additional or different license terms and conditions
131
+ for use, reproduction, or distribution of Your modifications, or
132
+ for any such Derivative Works as a whole, provided Your use,
133
+ reproduction, and distribution of the Work otherwise complies with
134
+ the conditions stated in this License.
135
+
136
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
137
+ any Contribution intentionally submitted for inclusion in the Work
138
+ by You to the Licensor shall be under the terms and conditions of
139
+ this License, without any additional terms or conditions.
140
+ Notwithstanding the above, nothing herein shall supersede or modify
141
+ the terms of any separate license agreement you may have executed
142
+ with Licensor regarding such Contributions.
143
+
144
+ 6. Trademarks. This License does not grant permission to use the trade
145
+ names, trademarks, service marks, or product names of the Licensor,
146
+ except as required for reasonable and customary use in describing the
147
+ origin of the Work and reproducing the content of the NOTICE file.
148
+
149
+ 7. Disclaimer of Warranty. Unless required by applicable law or
150
+ agreed to in writing, Licensor provides the Work (and each
151
+ Contributor provides its Contributions) on an "AS IS" BASIS,
152
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
153
+ implied, including, without limitation, any warranties or conditions
154
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
155
+ PARTICULAR PURPOSE. You are solely responsible for determining the
156
+ appropriateness of using or redistributing the Work and assume any
157
+ risks associated with Your exercise of permissions under this License.
158
+
159
+ 8. Limitation of Liability. In no event and under no legal theory,
160
+ whether in tort (including negligence), contract, or otherwise,
161
+ unless required by applicable law (such as deliberate and grossly
162
+ negligent acts) or agreed to in writing, shall any Contributor be
163
+ liable to You for damages, including any direct, indirect, special,
164
+ incidental, or consequential damages of any character arising as a
165
+ result of this License or out of the use or inability to use the
166
+ Work (including but not limited to damages for loss of goodwill,
167
+ work stoppage, computer failure or malfunction, or any and all
168
+ other commercial damages or losses), even if such Contributor
169
+ has been advised of the possibility of such damages.
170
+
171
+ 9. Accepting Warranty or Additional Liability. While redistributing
172
+ the Work or Derivative Works thereof, You may choose to offer,
173
+ and charge a fee for, acceptance of support, warranty, indemnity,
174
+ or other liability obligations and/or rights consistent with this
175
+ License. However, in accepting such obligations, You may act only
176
+ on Your own behalf and on Your sole responsibility, not on behalf
177
+ of any other Contributor, and only if You agree to indemnify,
178
+ defend, and hold each Contributor harmless for any liability
179
+ incurred by, or claims asserted against, such Contributor by reason
180
+ of your accepting any such warranty or additional liability.
181
+
182
+ END OF TERMS AND CONDITIONS
183
+
184
+ APPENDIX: How to apply the Apache License to your work.
185
+
186
+ To apply the Apache License to your work, attach the following
187
+ boilerplate notice, with the fields enclosed by brackets "[]"
188
+ replaced with your own identifying information. (Don't include
189
+ the brackets!) The text should be enclosed in the appropriate
190
+ comment syntax for the file format. We also recommend that a
191
+ file or class name and description of purpose be included on the
192
+ same "printed page" as the copyright notice for easier
193
+ identification within third-party archives.
194
+
195
+ Copyright [yyyy] [name of copyright owner]
196
+
197
+ Licensed under the Apache License, Version 2.0 (the "License");
198
+ you may not use this file except in compliance with the License.
199
+ You may obtain a copy of the License at
200
+
201
+ http://www.apache.org/licenses/LICENSE-2.0
202
+
203
+ Unless required by applicable law or agreed to in writing, software
204
+ distributed under the License is distributed on an "AS IS" BASIS,
205
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
206
+ See the License for the specific language governing permissions and
207
+ limitations under the License.
208
+ Requires-Dist: argon2-cffi>=25.1.0
209
+ Requires-Dist: cryptography>=50.0.0
210
+ Requires-Dist: pyperclip>=1.11.0
211
+ Requires-Dist: typer>=0.27.1
212
+ Requires-Python: >=3.12
213
+ Description-Content-Type: text/markdown
214
+
215
+ # Nexvault
216
+
217
+ Nexvault is a simple, secure, and developer-friendly vault for managing your sensitive secrets locally.
218
+
219
+ It's built for people who want to keep API keys, passwords, tokens, and other sensitive values under their own control — without relying on a cloud service.
220
+
221
+ > **Status:** Early development — V1
222
+
223
+ ---
224
+
225
+ ## Why Nexvault?
226
+
227
+ As developers, we deal with secrets all the time:
228
+
229
+ - API keys
230
+ - Database credentials
231
+ - Access tokens
232
+ - SSH credentials
233
+ - Environment variables
234
+ - Application secrets
235
+
236
+ Keeping these scattered across `.env` files, notes, or random config files gets messy fast.
237
+
238
+ Nexvault gives you one simple local vault to store and retrieve secrets easily, while keeping you fully in control of your data.
239
+
240
+ ---
241
+
242
+ ## Features
243
+
244
+ - 🔐 **Local-first** — Your vault lives on your machine. No cloud account or remote server required.
245
+ - 💻 **Cross-platform CLI** — Works on Linux, Windows, and macOS.
246
+ - 🖥️ **Linux GUI** — V1 includes a graphical interface for Linux, so you can browse and manage entries visually while the CLI stays available for scripting and terminal workflows.
247
+ - 🧩 **Developer-friendly** — Built with real dev workflows in mind: env variables, API credentials, tokens, and more.
248
+ - 📦 **Open source** — Developed out in the open, for everyone to use and improve.
249
+
250
+ ---
251
+
252
+ ## Installation
253
+
254
+ Nexvault is published to PyPI, so you'll have to install it from using [pipx](https://pypa.github.io/pipx/).
255
+
256
+ ### 1. Install pipx (if you don't have it already)
257
+
258
+ **macOS:**
259
+ ```bash
260
+ brew install pipx
261
+ pipx ensurepath
262
+ ```
263
+
264
+ **Linux:**
265
+ ```bash
266
+ python3 -m pip install --user pipx
267
+ python3 -m pipx ensurepath
268
+ ```
269
+
270
+ **Windows:**
271
+ ```powershell
272
+ py -m pip install --user pipx
273
+ py -m pipx ensurepath
274
+ ```
275
+
276
+ After installing, close and reopen your terminal so the `pipx` command is available.
277
+
278
+ ### 2. Install Nexvault with pipx
279
+
280
+ ```bash
281
+ pipx install nexvault
282
+ ```
283
+
284
+ That's it! You can now run Nexvault from anywhere with:
285
+
286
+ ```bash
287
+ nexvault
288
+ ```
289
+
290
+ ---
291
+
292
+ ## Usage
293
+
294
+ The CLI interface is still being designed, but here's a rough idea of what it will look like:
295
+
296
+ ```bash
297
+ nexvault init
298
+ nexvault add github-token
299
+ nexvault get github-token
300
+ nexvault list
301
+ ```
302
+
303
+ These commands are examples and may change before the V1 release.
304
+
305
+ ---
306
+
307
+ ## Security
308
+
309
+ Security is at the heart of what Nexvault is trying to do.
310
+
311
+ Nexvault aims to keep your sensitive data protected locally and avoid exposing it unnecessarily. That said, the project is still young, so please **don't treat it as production-grade security software yet**.
312
+
313
+ Details on encryption, key management, and threat modeling will be documented as things mature.
314
+
315
+ ---
316
+
317
+ ## Project Goals
318
+
319
+ Nexvault aims to be:
320
+
321
+ - **Simple** — easy to pick up and use
322
+ - **Local-first** — no mandatory cloud dependency
323
+ - **Secure** — built with security as a core requirement, not an afterthought
324
+ - **Developer-friendly** — feels natural from the terminal
325
+ - **Open source** — transparent and community-driven
326
+ - **Portable** — CLI support across major desktop platforms
327
+
328
+ ---
329
+
330
+ ## Roadmap
331
+
332
+ ### V1
333
+ - [ ] Vault initialization
334
+ - [ ] Secure vault storage
335
+ - [ ] Add secrets
336
+ - [ ] Retrieve secrets
337
+ - [ ] Delete secrets
338
+ - [ ] List vault entries
339
+ - [ ] Cross-platform CLI
340
+ - [ ] Linux GUI
341
+ - [ ] Basic documentation
342
+ - [ ] Initial security review
343
+
344
+ ### Future
345
+ - [ ] Windows GUI
346
+ - [ ] macOS GUI
347
+ - [ ] Import/export workflows
348
+ - [ ] Environment variable integration
349
+ - [ ] Better shell integration
350
+ - [ ] Automated testing and security auditing
351
+ - [ ] Additional vault backends
352
+
353
+ > The roadmap may change as the project grows.
354
+
355
+ ---
356
+
357
+ ## Contributing
358
+
359
+ Contributions, ideas, bug reports, and security feedback are all welcome! 🎉
360
+
361
+ To set up a local dev environment:
362
+
363
+ ```bash
364
+ git clone https://github.com/Nexment-Official/Nexvault.git
365
+ cd nexvault
366
+ uv sync
367
+ ```
368
+
369
+ Then run the CLI locally with:
370
+
371
+ ```bash
372
+ uv run nexvault
373
+ ```
374
+
375
+ Before opening a pull request, please check the project's issues and contribution guidelines.
376
+
377
+ ---
378
+
379
+ ## Security Issues
380
+
381
+ If you find a serious security vulnerability, please **don't** report it through a public GitHub issue.
382
+
383
+ Instructions for reporting security issues privately will be added before the first production release.
384
+
385
+ ---
386
+
387
+ ## License
388
+
389
+ Nexvault is released under the Apache License 2.0. See [LICENSE](LICENSE) for the full text.
390
+
391
+ ---
392
+
393
+ <p align="center">
394
+ Built with ❤️ for developers who want to keep their secrets under their control.
395
+ </p>
@@ -0,0 +1,181 @@
1
+ # Nexvault
2
+
3
+ Nexvault is a simple, secure, and developer-friendly vault for managing your sensitive secrets locally.
4
+
5
+ It's built for people who want to keep API keys, passwords, tokens, and other sensitive values under their own control — without relying on a cloud service.
6
+
7
+ > **Status:** Early development — V1
8
+
9
+ ---
10
+
11
+ ## Why Nexvault?
12
+
13
+ As developers, we deal with secrets all the time:
14
+
15
+ - API keys
16
+ - Database credentials
17
+ - Access tokens
18
+ - SSH credentials
19
+ - Environment variables
20
+ - Application secrets
21
+
22
+ Keeping these scattered across `.env` files, notes, or random config files gets messy fast.
23
+
24
+ Nexvault gives you one simple local vault to store and retrieve secrets easily, while keeping you fully in control of your data.
25
+
26
+ ---
27
+
28
+ ## Features
29
+
30
+ - 🔐 **Local-first** — Your vault lives on your machine. No cloud account or remote server required.
31
+ - 💻 **Cross-platform CLI** — Works on Linux, Windows, and macOS.
32
+ - 🖥️ **Linux GUI** — V1 includes a graphical interface for Linux, so you can browse and manage entries visually while the CLI stays available for scripting and terminal workflows.
33
+ - 🧩 **Developer-friendly** — Built with real dev workflows in mind: env variables, API credentials, tokens, and more.
34
+ - 📦 **Open source** — Developed out in the open, for everyone to use and improve.
35
+
36
+ ---
37
+
38
+ ## Installation
39
+
40
+ Nexvault is published to PyPI, so you'll have to install it from using [pipx](https://pypa.github.io/pipx/).
41
+
42
+ ### 1. Install pipx (if you don't have it already)
43
+
44
+ **macOS:**
45
+ ```bash
46
+ brew install pipx
47
+ pipx ensurepath
48
+ ```
49
+
50
+ **Linux:**
51
+ ```bash
52
+ python3 -m pip install --user pipx
53
+ python3 -m pipx ensurepath
54
+ ```
55
+
56
+ **Windows:**
57
+ ```powershell
58
+ py -m pip install --user pipx
59
+ py -m pipx ensurepath
60
+ ```
61
+
62
+ After installing, close and reopen your terminal so the `pipx` command is available.
63
+
64
+ ### 2. Install Nexvault with pipx
65
+
66
+ ```bash
67
+ pipx install nexvault
68
+ ```
69
+
70
+ That's it! You can now run Nexvault from anywhere with:
71
+
72
+ ```bash
73
+ nexvault
74
+ ```
75
+
76
+ ---
77
+
78
+ ## Usage
79
+
80
+ The CLI interface is still being designed, but here's a rough idea of what it will look like:
81
+
82
+ ```bash
83
+ nexvault init
84
+ nexvault add github-token
85
+ nexvault get github-token
86
+ nexvault list
87
+ ```
88
+
89
+ These commands are examples and may change before the V1 release.
90
+
91
+ ---
92
+
93
+ ## Security
94
+
95
+ Security is at the heart of what Nexvault is trying to do.
96
+
97
+ Nexvault aims to keep your sensitive data protected locally and avoid exposing it unnecessarily. That said, the project is still young, so please **don't treat it as production-grade security software yet**.
98
+
99
+ Details on encryption, key management, and threat modeling will be documented as things mature.
100
+
101
+ ---
102
+
103
+ ## Project Goals
104
+
105
+ Nexvault aims to be:
106
+
107
+ - **Simple** — easy to pick up and use
108
+ - **Local-first** — no mandatory cloud dependency
109
+ - **Secure** — built with security as a core requirement, not an afterthought
110
+ - **Developer-friendly** — feels natural from the terminal
111
+ - **Open source** — transparent and community-driven
112
+ - **Portable** — CLI support across major desktop platforms
113
+
114
+ ---
115
+
116
+ ## Roadmap
117
+
118
+ ### V1
119
+ - [ ] Vault initialization
120
+ - [ ] Secure vault storage
121
+ - [ ] Add secrets
122
+ - [ ] Retrieve secrets
123
+ - [ ] Delete secrets
124
+ - [ ] List vault entries
125
+ - [ ] Cross-platform CLI
126
+ - [ ] Linux GUI
127
+ - [ ] Basic documentation
128
+ - [ ] Initial security review
129
+
130
+ ### Future
131
+ - [ ] Windows GUI
132
+ - [ ] macOS GUI
133
+ - [ ] Import/export workflows
134
+ - [ ] Environment variable integration
135
+ - [ ] Better shell integration
136
+ - [ ] Automated testing and security auditing
137
+ - [ ] Additional vault backends
138
+
139
+ > The roadmap may change as the project grows.
140
+
141
+ ---
142
+
143
+ ## Contributing
144
+
145
+ Contributions, ideas, bug reports, and security feedback are all welcome! 🎉
146
+
147
+ To set up a local dev environment:
148
+
149
+ ```bash
150
+ git clone https://github.com/Nexment-Official/Nexvault.git
151
+ cd nexvault
152
+ uv sync
153
+ ```
154
+
155
+ Then run the CLI locally with:
156
+
157
+ ```bash
158
+ uv run nexvault
159
+ ```
160
+
161
+ Before opening a pull request, please check the project's issues and contribution guidelines.
162
+
163
+ ---
164
+
165
+ ## Security Issues
166
+
167
+ If you find a serious security vulnerability, please **don't** report it through a public GitHub issue.
168
+
169
+ Instructions for reporting security issues privately will be added before the first production release.
170
+
171
+ ---
172
+
173
+ ## License
174
+
175
+ Nexvault is released under the Apache License 2.0. See [LICENSE](LICENSE) for the full text.
176
+
177
+ ---
178
+
179
+ <p align="center">
180
+ Built with ❤️ for developers who want to keep their secrets under their control.
181
+ </p>
@@ -0,0 +1,25 @@
1
+ [project]
2
+ name = "nexvault"
3
+ version = "0.1.0"
4
+ description = "Nexvault is a simple, secure, and developer-friendly vault for managing your sensitive secrets locally."
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ dependencies = [
8
+ "argon2-cffi>=25.1.0",
9
+ "cryptography>=50.0.0",
10
+ "pyperclip>=1.11.0",
11
+ "typer>=0.27.1",
12
+ ]
13
+
14
+ [project.license]
15
+ file = "LICENSE"
16
+
17
+ [[project.authors]]
18
+ name = "Nexment"
19
+
20
+ [project.scripts]
21
+ nexvault = "nexvault.main:app"
22
+
23
+ [build-system]
24
+ requires = ["uv_build>=0.12.1,<0.13.0"]
25
+ build-backend = "uv_build"
@@ -0,0 +1,23 @@
1
+ [project]
2
+ name = "nexvault"
3
+ version = "0.1.0"
4
+ description = "Nexvault is a simple, secure, and developer-friendly vault for managing your sensitive secrets locally."
5
+ readme = "README.md"
6
+ license = { file = "LICENSE" }
7
+ authors = [
8
+ { name = "Nexment" }
9
+ ]
10
+ requires-python = ">=3.12"
11
+ dependencies = [
12
+ "argon2-cffi>=25.1.0",
13
+ "cryptography>=50.0.0",
14
+ "pyperclip>=1.11.0",
15
+ "typer>=0.27.1",
16
+ ]
17
+
18
+ [project.scripts]
19
+ nexvault = "nexvault.main:app"
20
+
21
+ [build-system]
22
+ requires = ["uv_build>=0.12.1,<0.13.0"]
23
+ build-backend = "uv_build"
File without changes
@@ -0,0 +1,52 @@
1
+ import os, json, sys
2
+ from rich import print
3
+ import getpass
4
+ from rich.prompt import Prompt, Confirm
5
+ from pathlib import Path
6
+
7
+ from nexvault.core.setup import check_initialisation
8
+ from nexvault.utils.configuration import get_value
9
+ import nexvault.crypto.encryption as encryption_methods
10
+ from nexvault.crypto.password import authentication
11
+
12
+
13
+ def add():
14
+ type = get_value("default_type")
15
+ if type.lower() == "password":
16
+ add_password()
17
+ elif type.lower() == "note":
18
+ add_note()
19
+ else:
20
+ print("[bold red]File reading error.\n[/bold red]")
21
+ sys.exit(1)
22
+
23
+
24
+ def add_password():
25
+ print("\n[bold]Add Password.[/bold]\n")
26
+ name = Prompt.ask("Name", default="password")
27
+ username = Prompt.ask("Username", default=getpass.getuser())
28
+ password = Prompt.ask("Password", password=True)
29
+ print("\n")
30
+ master_password = authentication()
31
+ key = encryption_methods.derive_key(master_password, get_value("salt"))
32
+ encrypted_password = encryption_methods.encrypt_text(password, key)
33
+ add_password_to_file(name, username, encrypted_password)
34
+ print("\n✔ Password added successfully\n")
35
+ sys.exit(0)
36
+
37
+
38
+ def add_password_to_file(name, username, encrypted_password):
39
+ try:
40
+ data = f"T-Password---NEW---{name}---U---{username}---P---{encrypted_password}---END\n"
41
+ with open(
42
+ f"{Path.home()}/.nexvault/{get_value('default_vault')}.enc", "a"
43
+ ) as f:
44
+ f.write(data)
45
+
46
+ except FileNotFoundError as e:
47
+ print("[bold red]File reading error.\n[/bold red]")
48
+ sys.exit(1)
49
+
50
+ except Exception:
51
+ print("[bold red]An unusual error! Please try again.\n[/bold red]")
52
+ sys.exit(1)
@@ -0,0 +1,104 @@
1
+ import os, sys, json, secrets
2
+ from rich import print
3
+ from pathlib import Path
4
+ from rich.prompt import Prompt, Confirm
5
+ from datetime import datetime
6
+
7
+ import nexvault.crypto.password as password_methods
8
+
9
+ now = datetime.now()
10
+
11
+
12
+ def check_initialisation():
13
+ try:
14
+ if os.path.exists(f"{Path.home()}/.nexvault/config.json"):
15
+ return True
16
+ else:
17
+ return False
18
+ except Exception:
19
+ print("[bold red]An unusual error! Please try again.\n[/bold red]")
20
+ sys.exit(1)
21
+
22
+
23
+ def initialise():
24
+ try:
25
+ if not check_initialisation():
26
+ print("Let's setup [bold yellow]Nexvault[/bold yellow] for you...")
27
+ vault_name = Prompt.ask("Enter vault name", default="new_vault")
28
+ while True:
29
+ master_password = Prompt.ask("Create a master password", password=True)
30
+ if master_password == "" or len(master_password) < 5:
31
+ print(
32
+ "[bold red]Password can't be less than 6 characters.[/bold red]"
33
+ )
34
+ continue
35
+ else:
36
+ break
37
+ while True:
38
+ confirm_master_password = Prompt.ask(
39
+ "Confirm your master password", password=True
40
+ )
41
+ if confirm_master_password != master_password:
42
+ print("[bold red]Password doesn't match.[/bold red]")
43
+ continue
44
+ else:
45
+ break
46
+
47
+ initialise_nv(vault_name, master_password)
48
+
49
+ print("\n✔ [bold yellow]Nexvault[/bold yellow] initialized successfully at")
50
+ print(f"{Path.home()}/.nexvault\n")
51
+
52
+ sys.exit(0)
53
+
54
+ if check_initialisation():
55
+ print("[bold yellow]Nexvault[/bold yellow] is already initialized.")
56
+ print(
57
+ "Re-Initialization will [bold red]delete[/bold red] all your previous secrets and data. It is [bold red]not reversible[/bold red]."
58
+ )
59
+ confirm_delete = Confirm.ask("Do you want to continue", default=False)
60
+ if confirm_delete:
61
+ os.remove(f"{Path.home()}/.nexvault/config.json")
62
+ print(
63
+ "\nRemoved [bold yellow]Nexvault[/bold yellow] data completely.\nRun command [bold]'nexvault init'[/bold] to re-initialize.\n"
64
+ )
65
+ sys.exit(0)
66
+ if not confirm_delete:
67
+ print("[bold red]Operation cancelled by user.[/bold red]\n")
68
+ sys.exit(0)
69
+ except Exception:
70
+ print("[bold red]An unusual error! Please try again.\n[/bold red]")
71
+ sys.exit(1)
72
+
73
+
74
+ def initialise_nv(vault_name, password):
75
+ try:
76
+ if os.path.exists(f"{Path.home()}/.nexvault"):
77
+ pass
78
+ else:
79
+ os.mkdir(f"{Path.home()}/.nexvault")
80
+ open(f"{Path.home()}/.nexvault/config.json", "w").close()
81
+ path = f"{Path.home()}/.nexvault"
82
+ data = {
83
+ "version": "1",
84
+ "name": vault_name,
85
+ "path": path,
86
+ "default_vault": vault_name,
87
+ "default_type": "password",
88
+ "number_of_vault": 1,
89
+ "created_at": str(now),
90
+ "last_updated": str(now),
91
+ "clipboard_clear_seconds": 30,
92
+ "shell": {
93
+ "history": False,
94
+ "confirm_destructive": True,
95
+ },
96
+ "salt": secrets.token_bytes(32).hex(),
97
+ }
98
+ with open(f"{Path.home()}/.nexvault/config.json", "w") as f:
99
+ json.dump(data, f, indent=4)
100
+ password_methods.hash_password(password, True, f"{Path.home()}/.nexvault/.enc")
101
+
102
+ except Exception:
103
+ print("[bold red]An unusual error! Please try again.\n[/bold red]")
104
+ sys.exit(1)
@@ -0,0 +1,5 @@
1
+ from rich import print
2
+
3
+
4
+ def start():
5
+ print("[bold yellow]Nexment Shell[/bold yellow] is under active development\n")
@@ -0,0 +1,34 @@
1
+ import os
2
+ from cryptography.hazmat.primitives.kdf.argon2 import Argon2id
3
+ from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305
4
+
5
+
6
+ def derive_key(password, salt):
7
+ kdf = Argon2id(
8
+ salt=bytes.fromhex(salt),
9
+ length=32,
10
+ iterations=3,
11
+ lanes=4,
12
+ memory_cost=64 * 1024,
13
+ )
14
+ key = kdf.derive(password.encode("utf-8"))
15
+ return key
16
+
17
+
18
+ def encrypt_text(text, key):
19
+ nonce = os.urandom(12)
20
+ cipher = ChaCha20Poly1305(key)
21
+
22
+ ciphertext = cipher.encrypt(nonce, text.encode("utf-8"), None)
23
+
24
+ return nonce + ciphertext
25
+
26
+
27
+ def decrypt_text(data, key):
28
+ nonce = data[:12]
29
+ ciphertext = data[12:]
30
+ cipher = ChaCha20Poly1305(key)
31
+
32
+ text = cipher.decrypt(nonce, ciphertext, None)
33
+
34
+ return text.decode("utf-8")
@@ -0,0 +1,61 @@
1
+ from argon2 import PasswordHasher
2
+ from argon2.exceptions import VerifyMismatchError
3
+ from rich import print
4
+ from rich.prompt import Prompt, Confirm
5
+ from pathlib import Path
6
+
7
+ ph = PasswordHasher()
8
+
9
+
10
+ def hash_password(password, save_to_file=False, file=""):
11
+ try:
12
+ hashed_password = ph.hash(password)
13
+ if not save_to_file:
14
+ return hashed_password
15
+ if save_to_file:
16
+ try:
17
+ with open(file, "w") as f:
18
+ f.write(hashed_password)
19
+ return True
20
+ except FileNotFoundError:
21
+ print("[bold red]File not found!.\n[/bold red]")
22
+ sys.exit(1)
23
+ except Exception:
24
+ print("[bold red]An unusual error! Please try again.\n[/bold red]")
25
+ sys.exit(1)
26
+
27
+
28
+ def verify_password(password, hashed_password="", get_from_file=False, file=""):
29
+ try:
30
+ try:
31
+ if not get_from_file:
32
+ ph.verify(hashed_password, password)
33
+ return True
34
+ else:
35
+ try:
36
+ with open(file, "r") as f:
37
+ hashed_password = f.read().strip()
38
+ ph.verify(hashed_password, password)
39
+ return True
40
+ except FileNotFoundError:
41
+ print("[bold red]File not found!.\n[/bold red]")
42
+ sys.exit(1)
43
+
44
+ except VerifyMismatchError:
45
+ return False
46
+
47
+ except Exception:
48
+ print("[bold red]An unusual error! Please try again.\n[/bold red]")
49
+ sys.exit(1)
50
+
51
+
52
+ def authentication():
53
+ master_password = Prompt.ask("Enter your master password", password=True)
54
+ verification = verify_password(
55
+ master_password, get_from_file=True, file=f"{Path.home()}/.nexvault/.enc"
56
+ )
57
+ if verification:
58
+ return master_password
59
+ if not verification:
60
+ print("[bold red]Wrong Password\n[/bold red]")
61
+ sys.exit(1)
@@ -0,0 +1,106 @@
1
+ import sys
2
+ from importlib.metadata import version as get_installed_version
3
+
4
+ import typer
5
+ from rich import print
6
+
7
+ import nexvault.core.add as add_secret
8
+ from nexvault.core.setup import check_initialisation
9
+ from nexvault.core.setup import initialise
10
+ from nexvault.core.shell import start as start_shell
11
+
12
+ app = typer.Typer(
13
+ help="Securely store and manage your passwords and notes with Nexvault.",
14
+ )
15
+
16
+
17
+ def check_init():
18
+ if check_initialisation():
19
+ pass
20
+ else:
21
+ print(
22
+ "\n[bold yellow]Nexvault[/bold yellow] is not initialized.\n"
23
+ "Run command [bold]'nexvault init'[/bold] to initialize.\n"
24
+ )
25
+ sys.exit(0)
26
+
27
+
28
+ @app.callback(invoke_without_command=True)
29
+ def main(
30
+ ctx: typer.Context,
31
+ get_version: bool = typer.Option(
32
+ False,
33
+ "--version",
34
+ "-v",
35
+ is_eager=True,
36
+ help="Show the installed Nexvault version.",
37
+ ),
38
+ update_nexvault: bool = typer.Option(
39
+ False,
40
+ "--update",
41
+ "-u",
42
+ is_eager=True,
43
+ help="Show instructions for updating Nexvault.",
44
+ ),
45
+ ):
46
+ """
47
+ Nexvault — a simple and secure vault for your secrets.
48
+
49
+ Run 'nexvault' without a command to open the interactive shell.
50
+ """
51
+
52
+ if get_version:
53
+ installed_version = get_installed_version("nexvault")
54
+ print(f"[bold yellow]Nexvault[/bold yellow] v{installed_version}\n")
55
+ sys.exit(0)
56
+
57
+ if update_nexvault:
58
+ installed_version = get_installed_version("nexvault")
59
+ print(f"[bold yellow]Nexvault[/bold yellow] v{installed_version}")
60
+ print(
61
+ "Please visit "
62
+ "[bold]https://docs.nexment.in/nexvault/[/bold] "
63
+ "to see update instructions.\n"
64
+ )
65
+ sys.exit(0)
66
+
67
+ if ctx.invoked_subcommand is None:
68
+ start_shell()
69
+
70
+
71
+ @app.command(help="Initialize Nexvault and create its initial configuration.")
72
+ def init():
73
+ initialise()
74
+
75
+
76
+ @app.command(help="Add a new password or note to Nexvault.")
77
+ def add(
78
+ type: str
79
+ | None = typer.Option(
80
+ None,
81
+ "--type",
82
+ "-t",
83
+ help="Item type. Supported types: 'password' and 'note'.",
84
+ ),
85
+ ):
86
+ check_init()
87
+
88
+ if type is None:
89
+ add_secret.add()
90
+
91
+ if type.lower() == "password":
92
+ add_secret.add_password()
93
+
94
+ elif type.lower() == "note":
95
+ add_secret.add_note()
96
+
97
+ else:
98
+ print(
99
+ "[bold red]Invalid type.[/bold red]\n"
100
+ "[bold]Supported Type: 'password' and 'note'[/bold]\n"
101
+ )
102
+ sys.exit(1)
103
+
104
+
105
+ if __name__ == "__main__":
106
+ app()
@@ -0,0 +1,19 @@
1
+ import json, os, sys
2
+ from rich import print
3
+ from pathlib import Path
4
+
5
+
6
+ def get_value(value="salt"):
7
+ try:
8
+ with open(f"{Path.home()}/.nexvault/config.json", "r") as f:
9
+ data = json.load(f)
10
+ value = data.get(value)
11
+ return value
12
+
13
+ except FileNotFoundError as e:
14
+ print("[bold red]File reading error.\n[/bold red]")
15
+ sys.exit(1)
16
+
17
+ except Exception:
18
+ print("[bold red]An unusual error! Please try again.\n[/bold red]")
19
+ sys.exit(1)