envcipher 0.1.2__tar.gz → 0.1.3__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.
Files changed (32) hide show
  1. {envcipher-0.1.2 → envcipher-0.1.3}/.gitignore +1 -0
  2. {envcipher-0.1.2 → envcipher-0.1.3}/Cargo.lock +12 -1
  3. {envcipher-0.1.2 → envcipher-0.1.3}/Cargo.toml +3 -2
  4. {envcipher-0.1.2 → envcipher-0.1.3}/PKG-INFO +3 -2
  5. {envcipher-0.1.2 → envcipher-0.1.3}/README.md +1 -1
  6. {envcipher-0.1.2 → envcipher-0.1.3}/pyproject.toml +4 -1
  7. {envcipher-0.1.2 → envcipher-0.1.3}/src/lib.rs +36 -0
  8. {envcipher-0.1.2 → envcipher-0.1.3}/LICENSE +0 -0
  9. {envcipher-0.1.2 → envcipher-0.1.3}/docs/CODE_OF_CONDUCT.md +0 -0
  10. {envcipher-0.1.2 → envcipher-0.1.3}/docs/CONTRIBUTING.md +0 -0
  11. {envcipher-0.1.2 → envcipher-0.1.3}/docs/SECURITY.md +0 -0
  12. {envcipher-0.1.2 → envcipher-0.1.3}/envcipher.txt +0 -0
  13. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/edit.rs +0 -0
  14. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/init.rs +0 -0
  15. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/key.rs +0 -0
  16. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/lock.rs +0 -0
  17. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/mod.rs +0 -0
  18. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/run.rs +0 -0
  19. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/status.rs +0 -0
  20. {envcipher-0.1.2 → envcipher-0.1.3}/src/cli/unlock.rs +0 -0
  21. {envcipher-0.1.2 → envcipher-0.1.3}/src/crypto/aead.rs +0 -0
  22. {envcipher-0.1.2 → envcipher-0.1.3}/src/crypto/mod.rs +0 -0
  23. {envcipher-0.1.2 → envcipher-0.1.3}/src/crypto/secret.rs +0 -0
  24. {envcipher-0.1.2 → envcipher-0.1.3}/src/env/mod.rs +0 -0
  25. {envcipher-0.1.2 → envcipher-0.1.3}/src/env/parser.rs +0 -0
  26. {envcipher-0.1.2 → envcipher-0.1.3}/src/error.rs +0 -0
  27. {envcipher-0.1.2 → envcipher-0.1.3}/src/keystore/mod.rs +0 -0
  28. {envcipher-0.1.2 → envcipher-0.1.3}/src/main.rs +0 -0
  29. {envcipher-0.1.2 → envcipher-0.1.3}/tests/crypto.rs +0 -0
  30. {envcipher-0.1.2 → envcipher-0.1.3}/tests/env.rs +0 -0
  31. {envcipher-0.1.2 → envcipher-0.1.3}/tests/integration.rs +0 -0
  32. {envcipher-0.1.2 → envcipher-0.1.3}/tests/keystore.rs +0 -0
@@ -6,3 +6,4 @@ PR*
6
6
  .envcipher.json
7
7
  test.py
8
8
  .venv
9
+ uv.lock
@@ -314,7 +314,7 @@ dependencies = [
314
314
 
315
315
  [[package]]
316
316
  name = "envcipher"
317
- version = "0.1.1"
317
+ version = "0.1.3"
318
318
  dependencies = [
319
319
  "aes-gcm",
320
320
  "assert_cmd",
@@ -444,6 +444,7 @@ version = "3.6.3"
444
444
  source = "registry+https://github.com/rust-lang/crates.io-index"
445
445
  checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c"
446
446
  dependencies = [
447
+ "linux-keyutils",
447
448
  "log",
448
449
  "security-framework 2.11.1",
449
450
  "security-framework 3.5.1",
@@ -466,6 +467,16 @@ dependencies = [
466
467
  "libc",
467
468
  ]
468
469
 
470
+ [[package]]
471
+ name = "linux-keyutils"
472
+ version = "0.2.4"
473
+ source = "registry+https://github.com/rust-lang/crates.io-index"
474
+ checksum = "761e49ec5fd8a5a463f9b84e877c373d888935b71c6be78f3767fe2ae6bed18e"
475
+ dependencies = [
476
+ "bitflags",
477
+ "libc",
478
+ ]
479
+
469
480
  [[package]]
470
481
  name = "linux-raw-sys"
471
482
  version = "0.11.0"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "envcipher"
3
- version = "0.1.1"
3
+ version = "0.1.3"
4
4
  edition = "2024"
5
5
  authors = ["iamprecieee"]
6
6
  description = "Encipher .env files to make accidental leaks harmless"
@@ -16,6 +16,7 @@ exclude = [
16
16
  "*.whl",
17
17
  "target/wheels/",
18
18
  ".env",
19
+ "uv.lock",
19
20
  ]
20
21
  readme = "README.md"
21
22
 
@@ -34,7 +35,7 @@ clap = { version = "4.5.54", features = ["derive"] }
34
35
  colored = "3.1.1"
35
36
  dirs = "6.0.0"
36
37
  hex = "0.4.3"
37
- keyring = { version = "3.6.3", features = ["apple-native"] }
38
+ keyring = { version = "3.6.3", features = ["apple-native", "linux-native"] }
38
39
  rand = "0.9.2"
39
40
  sha2 = "0.10.9"
40
41
  thiserror = "2.0.18"
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: envcipher
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Requires-Dist: maturin>=1.12.3
7
8
  License-File: LICENSE
8
9
  Summary: Secure .env file encryption using OS keychain. Keep secrets encrypted at rest.
9
10
  Keywords: env,encryption,secrets,security,python,dotenv
@@ -51,7 +52,7 @@ CLI only.
51
52
  ```bash
52
53
  git clone https://github.com/iamprecieee/envcipher
53
54
  cd envcipher
54
- cargo build --release
55
+ cargo install --path .
55
56
  ```
56
57
 
57
58
  </details>
@@ -38,7 +38,7 @@ CLI only.
38
38
  ```bash
39
39
  git clone https://github.com/iamprecieee/envcipher
40
40
  cd envcipher
41
- cargo build --release
41
+ cargo install --path .
42
42
  ```
43
43
 
44
44
  </details>
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "envcipher"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "Secure .env file encryption using OS keychain. Keep secrets encrypted at rest."
9
9
  authors = [{name = "iamprecieee", email = "emmypresh777@gmail.com"}]
10
10
  license = {file = "LICENSE"}
@@ -16,6 +16,9 @@ classifiers = [
16
16
  "Programming Language :: Python :: Implementation :: CPython",
17
17
  "Programming Language :: Python :: Implementation :: PyPy",
18
18
  ]
19
+ dependencies = [
20
+ "maturin>=1.12.3",
21
+ ]
19
22
 
20
23
  [project.scripts]
21
24
  envcipher = "envcipher:main"
@@ -1,7 +1,43 @@
1
+ //! # Envcipher
2
+ //!
3
+ //! Encrypt `.env` files using AES-256-GCM with keys stored in your OS keychain.
4
+ //!
5
+ //! ## Features
6
+ //!
7
+ //! - **AES-256-GCM encryption** with authenticated encryption
8
+ //! - **OS keychain integration** (Keychain / Credential Manager / Secret Service)
9
+ //! - **Python bindings** via PyO3 (optional `python` feature)
10
+ //!
11
+ //! ## CLI Usage
12
+ //!
13
+ //! ```bash
14
+ //! envcipher init # Generate key
15
+ //! envcipher lock # Encrypt .env
16
+ //! envcipher unlock # Decrypt .env
17
+ //! envcipher edit # Edit encrypted file
18
+ //! envcipher run -- <cmd> # Run with decrypted env
19
+ //! ```
20
+ //!
21
+ //! ## Python Usage
22
+ //!
23
+ //! ```python
24
+ //! import envcipher
25
+ //! envcipher.load() # Decrypt and load into os.environ
26
+ //! ```
27
+
28
+ /// Command-line interface implementation.
1
29
  pub mod cli;
30
+
31
+ /// Cryptographic primitives (AES-256-GCM, key generation).
2
32
  pub mod crypto;
33
+
34
+ /// Environment file parsing and manipulation.
3
35
  pub mod env;
36
+
37
+ /// Error types for the crate.
4
38
  pub mod error;
39
+
40
+ /// OS keychain integration for secure key storage.
5
41
  pub mod keystore;
6
42
 
7
43
  #[cfg(feature = "python")]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes