dotenvx-rails 5.1.12 → 5.1.14
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +17 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d98b4141716cf15071f8101c44de4fc769906614a3cb21aa5b05da033c28eb9
|
|
4
|
+
data.tar.gz: c3232c760f04bd34a7fab5670ba59d59bb2ff21069921e2e0efce84f9eba01c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2545883b45a0f9add4bc15fd70e33a8c995ffb17f97502659a77a2fd2796ab1983e8ca12d2407011f9e03b4e3479fea6021678cb759ea9dfd1ad4448feec209a
|
|
7
|
+
data.tar.gz: 40f5b069ee187fe45a1a6654fa1b8542a8f8713138e7ab9f7d2fefc48c339e4134a49d07b90340bb161c91894b7046f0ab6a7148f6963e8b8de7791ce6600fcf
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 5.1.14 (2026-12-03)
|
|
8
|
+
|
|
9
|
+
- Expose `Dotenvx::Primitives` for key generation, derivation, encryption, decryption, and algorithm detection using the shared Rust implementation.
|
|
10
|
+
|
|
11
|
+
## 5.1.13 (2026-12-03)
|
|
12
|
+
|
|
13
|
+
- Add built-in ML-KEM-768/AES-256-GCM envelope support through the shared primitives and SDK, including Base64 public keys and private seeds.
|
|
14
|
+
|
|
7
15
|
## 5.1.12 (2026-12-02)
|
|
8
16
|
|
|
9
17
|
- Set a valid Mach-O install name in the macOS native gem so it loads on macOS versions that reject an empty name.
|
data/README.md
CHANGED
|
@@ -115,3 +115,20 @@ The result is a system built entirely from primitives, developers already unders
|
|
|
115
115
|
[Read the whitepaper →](https://dotenvx.com/dotenvx.pdf?v=README)
|
|
116
116
|
|
|
117
117
|
|
|
118
|
+
|
|
119
|
+
## Primitives
|
|
120
|
+
|
|
121
|
+
Use the same key operations as the CLI without loading files or environment variables:
|
|
122
|
+
|
|
123
|
+
```ruby
|
|
124
|
+
require "dotenvx/primitives"
|
|
125
|
+
|
|
126
|
+
pair = Dotenvx::Primitives.keypair(algorithm: "mlkem768")
|
|
127
|
+
public_key = Dotenvx::Primitives.derive(pair.fetch("private_key"))
|
|
128
|
+
ciphertext = Dotenvx::Primitives.encrypt(public_key, "hello")
|
|
129
|
+
plaintext = Dotenvx::Primitives.decrypt(pair.fetch("private_key"), ciphertext)
|
|
130
|
+
Dotenvx::Primitives.public_key_algorithm(public_key) # => "mlkem768"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`secp256k1` is the default algorithm. Invalid keys, ciphertext, and unsupported
|
|
134
|
+
algorithms raise `ArgumentError`. Algorithm detection returns `nil` for invalid keys.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dotenvx-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.1.
|
|
4
|
+
version: 5.1.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- motdotla
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 5.1.
|
|
18
|
+
version: 5.1.14
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 5.1.
|
|
25
|
+
version: 5.1.14
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: railties
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|