envcipher 0.1.2__tar.gz → 0.1.4__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.
- {envcipher-0.1.2 → envcipher-0.1.4}/.gitignore +1 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/Cargo.lock +12 -1
- {envcipher-0.1.2 → envcipher-0.1.4}/Cargo.toml +6 -4
- {envcipher-0.1.2 → envcipher-0.1.4}/LICENSE +1 -1
- {envcipher-0.1.2 → envcipher-0.1.4}/PKG-INFO +8 -4
- {envcipher-0.1.2 → envcipher-0.1.4}/README.md +2 -2
- {envcipher-0.1.2 → envcipher-0.1.4}/docs/CODE_OF_CONDUCT.md +1 -1
- {envcipher-0.1.2 → envcipher-0.1.4}/docs/CONTRIBUTING.md +1 -1
- {envcipher-0.1.2 → envcipher-0.1.4}/docs/SECURITY.md +1 -1
- {envcipher-0.1.2 → envcipher-0.1.4}/pyproject.toml +7 -2
- {envcipher-0.1.2 → envcipher-0.1.4}/src/lib.rs +36 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/envcipher.txt +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/edit.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/init.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/key.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/lock.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/mod.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/run.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/status.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/cli/unlock.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/crypto/aead.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/crypto/mod.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/crypto/secret.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/env/mod.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/env/parser.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/error.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/keystore/mod.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/src/main.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/tests/crypto.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/tests/env.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/tests/integration.rs +0 -0
- {envcipher-0.1.2 → envcipher-0.1.4}/tests/keystore.rs +0 -0
|
@@ -314,7 +314,7 @@ dependencies = [
|
|
|
314
314
|
|
|
315
315
|
[[package]]
|
|
316
316
|
name = "envcipher"
|
|
317
|
-
version = "0.1.
|
|
317
|
+
version = "0.1.4"
|
|
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,11 +1,12 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "envcipher"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.4"
|
|
4
4
|
edition = "2024"
|
|
5
|
-
authors = ["
|
|
5
|
+
authors = ["Precious I. <preciousiheanyi.dev@gmail.com>"]
|
|
6
6
|
description = "Encipher .env files to make accidental leaks harmless"
|
|
7
7
|
license = "MIT"
|
|
8
|
-
repository = "https://github.com/
|
|
8
|
+
repository = "https://github.com/sleeperunit/envcipher"
|
|
9
|
+
homepage = "https://github.com/sleeperunit/envcipher"
|
|
9
10
|
keywords = ["env", "encryption", "secrets", "security", "cli"]
|
|
10
11
|
categories = ["command-line-utilities", "cryptography"]
|
|
11
12
|
exclude = [
|
|
@@ -16,6 +17,7 @@ exclude = [
|
|
|
16
17
|
"*.whl",
|
|
17
18
|
"target/wheels/",
|
|
18
19
|
".env",
|
|
20
|
+
"uv.lock",
|
|
19
21
|
]
|
|
20
22
|
readme = "README.md"
|
|
21
23
|
|
|
@@ -34,7 +36,7 @@ clap = { version = "4.5.54", features = ["derive"] }
|
|
|
34
36
|
colored = "3.1.1"
|
|
35
37
|
dirs = "6.0.0"
|
|
36
38
|
hex = "0.4.3"
|
|
37
|
-
keyring = { version = "3.6.3", features = ["apple-native"] }
|
|
39
|
+
keyring = { version = "3.6.3", features = ["apple-native", "linux-native"] }
|
|
38
40
|
rand = "0.9.2"
|
|
39
41
|
sha2 = "0.10.9"
|
|
40
42
|
thiserror = "2.0.18"
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: envcipher
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
7
|
License-File: LICENSE
|
|
8
8
|
Summary: Secure .env file encryption using OS keychain. Keep secrets encrypted at rest.
|
|
9
9
|
Keywords: env,encryption,secrets,security,python,dotenv
|
|
10
|
-
|
|
10
|
+
Home-Page: https://github.com/sleeperunit/envcipher
|
|
11
|
+
Author-email: "Precious I." <preciousiheanyi.dev@gmail.com>
|
|
11
12
|
Requires-Python: >=3.7
|
|
12
13
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
14
|
+
Project-URL: Homepage, https://github.com/sleeperunit/envcipher
|
|
15
|
+
Project-URL: Issues, https://github.com/sleeperunit/envcipher/issues
|
|
16
|
+
Project-URL: Repository, https://github.com/sleeperunit/envcipher
|
|
13
17
|
|
|
14
18
|
# Envcipher
|
|
15
19
|
|
|
@@ -49,9 +53,9 @@ CLI only.
|
|
|
49
53
|
<summary><strong>From Source</strong></summary>
|
|
50
54
|
|
|
51
55
|
```bash
|
|
52
|
-
git clone https://github.com/
|
|
56
|
+
git clone https://github.com/sleeperunit/envcipher
|
|
53
57
|
cd envcipher
|
|
54
|
-
cargo
|
|
58
|
+
cargo install --path .
|
|
55
59
|
```
|
|
56
60
|
|
|
57
61
|
</details>
|
|
@@ -36,9 +36,9 @@ CLI only.
|
|
|
36
36
|
<summary><strong>From Source</strong></summary>
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
git clone https://github.com/
|
|
39
|
+
git clone https://github.com/sleeperunit/envcipher
|
|
40
40
|
cd envcipher
|
|
41
|
-
cargo
|
|
41
|
+
cargo install --path .
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
</details>
|
|
@@ -54,7 +54,7 @@ representative at an online or offline event.
|
|
|
54
54
|
## Enforcement
|
|
55
55
|
|
|
56
56
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
57
|
-
reported to the community leaders responsible for enforcement at
|
|
57
|
+
reported to the community leaders responsible for enforcement at preciousiheanyi.dev@gmail.com.
|
|
58
58
|
All complaints will be reviewed and investigated promptly and fairly.
|
|
59
59
|
|
|
60
60
|
All community leaders are obligated to respect the privacy and security of the
|
|
@@ -4,9 +4,9 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "envcipher"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
description = "Secure .env file encryption using OS keychain. Keep secrets encrypted at rest."
|
|
9
|
-
authors = [{name = "
|
|
9
|
+
authors = [{name = "Precious I.", email = "preciousiheanyi.dev@gmail.com"}]
|
|
10
10
|
license = {file = "LICENSE"}
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
requires-python = ">=3.7"
|
|
@@ -17,6 +17,11 @@ classifiers = [
|
|
|
17
17
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://github.com/sleeperunit/envcipher"
|
|
22
|
+
Repository = "https://github.com/sleeperunit/envcipher"
|
|
23
|
+
Issues = "https://github.com/sleeperunit/envcipher/issues"
|
|
24
|
+
|
|
20
25
|
[project.scripts]
|
|
21
26
|
envcipher = "envcipher:main"
|
|
22
27
|
|
|
@@ -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
|