swarmauri_mre_crypto_age 0.3.0.dev4__tar.gz → 0.3.0.dev32__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.
- {swarmauri_mre_crypto_age-0.3.0.dev4 → swarmauri_mre_crypto_age-0.3.0.dev32}/PKG-INFO +35 -8
- {swarmauri_mre_crypto_age-0.3.0.dev4 → swarmauri_mre_crypto_age-0.3.0.dev32}/README.md +26 -3
- {swarmauri_mre_crypto_age-0.3.0.dev4 → swarmauri_mre_crypto_age-0.3.0.dev32}/pyproject.toml +14 -2
- {swarmauri_mre_crypto_age-0.3.0.dev4 → swarmauri_mre_crypto_age-0.3.0.dev32}/LICENSE +0 -0
- {swarmauri_mre_crypto_age-0.3.0.dev4 → swarmauri_mre_crypto_age-0.3.0.dev32}/swarmauri_mre_crypto_age/AgeMreCrypto.py +0 -0
- {swarmauri_mre_crypto_age-0.3.0.dev4 → swarmauri_mre_crypto_age-0.3.0.dev32}/swarmauri_mre_crypto_age/__init__.py +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: swarmauri_mre_crypto_age
|
|
3
|
-
Version: 0.3.0.
|
|
3
|
+
Version: 0.3.0.dev32
|
|
4
4
|
Summary: Age-style X25519 sealed-per-recipient MRE provider for Swarmauri
|
|
5
|
-
License: Apache-2.0
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: swarmauri,sdk,standards,mre,crypto,age,cryptography
|
|
8
|
+
Author: Jacob Stewart
|
|
9
|
+
Author-email: jacob@swarmauri.com
|
|
8
10
|
Requires-Python: >=3.10,<3.13
|
|
9
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
12
|
Classifier: Natural Language :: English
|
|
@@ -15,6 +17,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
15
17
|
Classifier: Development Status :: 3 - Alpha
|
|
16
18
|
Classifier: Topic :: Security :: Cryptography
|
|
17
19
|
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Programming Language :: Python
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
23
|
Provides-Extra: cbor
|
|
19
24
|
Requires-Dist: cbor2 ; extra == "cbor"
|
|
20
25
|
Requires-Dist: cryptography (>=41)
|
|
@@ -22,7 +27,7 @@ Requires-Dist: swarmauri_base
|
|
|
22
27
|
Requires-Dist: swarmauri_core
|
|
23
28
|
Description-Content-Type: text/markdown
|
|
24
29
|
|
|
25
|
-

|
|
26
31
|
|
|
27
32
|
<p align="center">
|
|
28
33
|
<a href="https://pypi.org/project/swarmauri_mre_crypto_age/">
|
|
@@ -43,14 +48,24 @@ Description-Content-Type: text/markdown
|
|
|
43
48
|
|
|
44
49
|
Age-based multi-recipient encryption provider implementing the `IMreCrypto` contract.
|
|
45
50
|
|
|
46
|
-
- Sealed-per-recipient X25519 stanzas
|
|
47
|
-
- ChaCha20-Poly1305 payload encryption
|
|
51
|
+
- Sealed-per-recipient X25519 stanzas (`mode="sealed_per_recipient"` and `recipient_alg="X25519-SEAL"`)
|
|
52
|
+
- ChaCha20-Poly1305 payload encryption for each recipient header
|
|
48
53
|
- Deterministic recipient identifiers via SHA-256 public key fingerprints
|
|
54
|
+
- Rewrapping support for adding or removing recipients when provided the original plaintext or an opening identity
|
|
49
55
|
|
|
50
56
|
### Installation
|
|
51
57
|
|
|
58
|
+
Choose the installer that matches your project workflow:
|
|
59
|
+
|
|
52
60
|
```bash
|
|
61
|
+
# pip
|
|
53
62
|
pip install swarmauri_mre_crypto_age
|
|
63
|
+
|
|
64
|
+
# Poetry
|
|
65
|
+
poetry add swarmauri_mre_crypto_age
|
|
66
|
+
|
|
67
|
+
# uv
|
|
68
|
+
uv add swarmauri_mre_crypto_age
|
|
54
69
|
```
|
|
55
70
|
|
|
56
71
|
### Usage
|
|
@@ -86,7 +101,19 @@ pt = await crypto.open_for({"kind": "cryptography_obj", "obj": sk1}, env)
|
|
|
86
101
|
assert pt == b"secret"
|
|
87
102
|
```
|
|
88
103
|
|
|
104
|
+
The helper accepts multiple `KeyRef` formats, including dictionaries with
|
|
105
|
+
`kind="cryptography_obj"` (for `X25519PublicKey` / `X25519PrivateKey` objects)
|
|
106
|
+
and raw byte references such as `kind="raw_x25519_pk"` or `kind="age_x25519_pk"`.
|
|
107
|
+
When rewrapping an existing envelope to add recipients, pass the plaintext via
|
|
108
|
+
`opts["pt"]` or provide an identity through `opts["open_with"]` so the payload
|
|
109
|
+
can be resealed for the new recipients.
|
|
110
|
+
|
|
89
111
|
## Entry point
|
|
90
112
|
|
|
91
113
|
The provider is registered under the `swarmauri.mre_cryptos` entry-point as `AgeMreCrypto`.
|
|
92
114
|
|
|
115
|
+
## Want to help?
|
|
116
|
+
|
|
117
|
+
If you want to contribute to swarmauri-sdk, read up on our
|
|
118
|
+
[guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
|
|
119
|
+
that will help you get started.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://pypi.org/project/swarmauri_mre_crypto_age/">
|
|
@@ -19,14 +19,24 @@
|
|
|
19
19
|
|
|
20
20
|
Age-based multi-recipient encryption provider implementing the `IMreCrypto` contract.
|
|
21
21
|
|
|
22
|
-
- Sealed-per-recipient X25519 stanzas
|
|
23
|
-
- ChaCha20-Poly1305 payload encryption
|
|
22
|
+
- Sealed-per-recipient X25519 stanzas (`mode="sealed_per_recipient"` and `recipient_alg="X25519-SEAL"`)
|
|
23
|
+
- ChaCha20-Poly1305 payload encryption for each recipient header
|
|
24
24
|
- Deterministic recipient identifiers via SHA-256 public key fingerprints
|
|
25
|
+
- Rewrapping support for adding or removing recipients when provided the original plaintext or an opening identity
|
|
25
26
|
|
|
26
27
|
### Installation
|
|
27
28
|
|
|
29
|
+
Choose the installer that matches your project workflow:
|
|
30
|
+
|
|
28
31
|
```bash
|
|
32
|
+
# pip
|
|
29
33
|
pip install swarmauri_mre_crypto_age
|
|
34
|
+
|
|
35
|
+
# Poetry
|
|
36
|
+
poetry add swarmauri_mre_crypto_age
|
|
37
|
+
|
|
38
|
+
# uv
|
|
39
|
+
uv add swarmauri_mre_crypto_age
|
|
30
40
|
```
|
|
31
41
|
|
|
32
42
|
### Usage
|
|
@@ -62,6 +72,19 @@ pt = await crypto.open_for({"kind": "cryptography_obj", "obj": sk1}, env)
|
|
|
62
72
|
assert pt == b"secret"
|
|
63
73
|
```
|
|
64
74
|
|
|
75
|
+
The helper accepts multiple `KeyRef` formats, including dictionaries with
|
|
76
|
+
`kind="cryptography_obj"` (for `X25519PublicKey` / `X25519PrivateKey` objects)
|
|
77
|
+
and raw byte references such as `kind="raw_x25519_pk"` or `kind="age_x25519_pk"`.
|
|
78
|
+
When rewrapping an existing envelope to add recipients, pass the plaintext via
|
|
79
|
+
`opts["pt"]` or provide an identity through `opts["open_with"]` so the payload
|
|
80
|
+
can be resealed for the new recipients.
|
|
81
|
+
|
|
65
82
|
## Entry point
|
|
66
83
|
|
|
67
84
|
The provider is registered under the `swarmauri.mre_cryptos` entry-point as `AgeMreCrypto`.
|
|
85
|
+
|
|
86
|
+
## Want to help?
|
|
87
|
+
|
|
88
|
+
If you want to contribute to swarmauri-sdk, read up on our
|
|
89
|
+
[guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
|
|
90
|
+
that will help you get started.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_mre_crypto_age"
|
|
3
|
-
version = "0.3.0.
|
|
3
|
+
version = "0.3.0.dev32"
|
|
4
4
|
description = "Age-style X25519 sealed-per-recipient MRE provider for Swarmauri"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
requires-python = ">=3.10,<3.13"
|
|
8
|
-
authors = [{ name = "
|
|
8
|
+
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
9
9
|
classifiers = [
|
|
10
10
|
"License :: OSI Approved :: Apache Software License",
|
|
11
11
|
"Natural Language :: English",
|
|
@@ -16,12 +16,24 @@ classifiers = [
|
|
|
16
16
|
"Development Status :: 3 - Alpha",
|
|
17
17
|
"Topic :: Security :: Cryptography",
|
|
18
18
|
"Intended Audience :: Developers",
|
|
19
|
+
"Programming Language :: Python",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
19
22
|
]
|
|
20
23
|
dependencies = [
|
|
21
24
|
"swarmauri_core",
|
|
22
25
|
"swarmauri_base",
|
|
23
26
|
"cryptography>=41",
|
|
24
27
|
]
|
|
28
|
+
keywords = [
|
|
29
|
+
'swarmauri',
|
|
30
|
+
'sdk',
|
|
31
|
+
'standards',
|
|
32
|
+
'mre',
|
|
33
|
+
'crypto',
|
|
34
|
+
'age',
|
|
35
|
+
'cryptography',
|
|
36
|
+
]
|
|
25
37
|
|
|
26
38
|
[project.optional-dependencies]
|
|
27
39
|
cbor = ["cbor2"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|