onlykey-agent 1.1.17__py3-none-any.whl

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.
@@ -0,0 +1,12 @@
1
+ from libagent import age, signify, gpg, ssh
2
+ from libagent.device.onlykey import OnlyKey as DeviceType
3
+
4
+ ssh_agent = lambda: libagent.ssh.main(DeviceType)
5
+ gpg_tool = lambda: libagent.gpg.main(DeviceType)
6
+ gpg_agent = lambda: libagent.gpg.run_agent(DeviceType)
7
+
8
+ age_tool = lambda: age.main(DeviceType)
9
+ ssh_agent = lambda: ssh.main(DeviceType)
10
+ gpg_tool = lambda: gpg.main(DeviceType)
11
+ gpg_agent = lambda: gpg.run_agent(DeviceType)
12
+ signify_tool = lambda: signify.main(DeviceType)
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.4
2
+ Name: onlykey-agent
3
+ Version: 1.1.17
4
+ Summary: Using OnlyKey as hardware SSH/GPG agent
5
+ Home-page: http://github.com/trustcrypto/onlykey-agent
6
+ Author: CryptoTrust
7
+ Author-email: admin@crp.to
8
+ Project-URL: Homepage, https://github.com/trustcrypto/onlykey-agent
9
+ Project-URL: Documentation, https://docs.onlykey.io
10
+ Project-URL: Source, https://github.com/trustcrypto/onlykey-agent
11
+ Platform: POSIX
12
+ Classifier: Environment :: Console
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Information Technology
16
+ Classifier: Intended Audience :: System Administrators
17
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
18
+ Classifier: Operating System :: POSIX
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Classifier: Topic :: System :: Networking
25
+ Classifier: Topic :: Communications
26
+ Classifier: Topic :: Security
27
+ Classifier: Topic :: Utilities
28
+ Requires-Python: >=3.10
29
+ Description-Content-Type: text/markdown
30
+ Requires-Dist: lib-agent>=1.0.9
31
+ Requires-Dist: onlykey>=1.3.0
32
+ Dynamic: author
33
+ Dynamic: author-email
34
+ Dynamic: classifier
35
+ Dynamic: description
36
+ Dynamic: description-content-type
37
+ Dynamic: home-page
38
+ Dynamic: platform
39
+ Dynamic: project-url
40
+ Dynamic: requires-dist
41
+ Dynamic: requires-python
42
+ Dynamic: summary
43
+
44
+ # onlykey-agent
45
+
46
+ **Use your [OnlyKey](https://onlykey.io) as a hardware-based SSH and GPG agent.**
47
+
48
+ `onlykey-agent` lets you perform SSH authentication and GPG operations (signing,
49
+ encryption, and decryption) using keys that are generated and stored on an
50
+ OnlyKey hardware security device. Your private keys are created on the device
51
+ and never leave it — they are never written to disk or exposed to your computer,
52
+ which protects them from malware and key-theft even on a compromised host.
53
+
54
+ It is part of the [`lib-agent`](https://pypi.org/project/lib-agent/) family of
55
+ hardware agents (alongside `trezor-agent`, `ledger_agent`, `keepkey_agent`, and
56
+ `jade_agent`).
57
+
58
+ ## Features
59
+
60
+ - **SSH agent** — authenticate to servers and Git hosts with a key held on your OnlyKey.
61
+ - **GPG agent** — sign emails, Git commits, and software releases, and decrypt messages.
62
+ - **age support** — encrypt and decrypt files with hardware-backed keys.
63
+ - **No keys on disk** — keys are generated and stored on the device and never reach the host.
64
+
65
+ ## Installation
66
+
67
+ ```bash
68
+ pip install onlykey-agent
69
+ ```
70
+
71
+ This installs three console entry points:
72
+
73
+ - `onlykey-agent` — SSH agent
74
+ - `onlykey-gpg` — GPG tool
75
+ - `onlykey-gpg-agent` — GPG agent
76
+
77
+ ## Usage
78
+
79
+ Use your OnlyKey to log in over SSH:
80
+
81
+ ```bash
82
+ onlykey-agent user@example.com -c
83
+ ```
84
+
85
+ Set up a GPG identity backed by your OnlyKey:
86
+
87
+ ```bash
88
+ onlykey-gpg init "Your Name <you@example.com>"
89
+ ```
90
+
91
+ Derived keys default to the original derivation, so existing SSH and GPG keys
92
+ are unchanged. `--skey derived-v2` / `--dkey derived-v2` selects the newer
93
+ HKDF-based derivation (firmware v3.1.0+), which gives different keys.
94
+
95
+ Full SSH and GPG instructions, including common use cases, are available in the
96
+ [project documentation](https://github.com/trustcrypto/onlykey-agent).
97
+
98
+ ## Requirements
99
+
100
+ - Python 3.10+
101
+ - An [OnlyKey](https://onlykey.io) device (composite PQC GPG keys and `--skey/--dkey derived-v2` need firmware v3.1.0 or newer)
102
+ - [`lib-agent`](https://pypi.org/project/lib-agent/) and the
103
+ [`onlykey`](https://pypi.org/project/onlykey/) Python package (installed automatically)
104
+
105
+ ## Links
106
+
107
+ - Homepage / source: https://github.com/trustcrypto/onlykey-agent
108
+ - OnlyKey: https://onlykey.io
109
+ - Documentation: https://docs.onlykey.io
110
+
111
+ ## License
112
+
113
+ Released under the GNU Lesser General Public License v3 (LGPLv3).
@@ -0,0 +1,7 @@
1
+ onlykey_agent.py,sha256=fR3nz296Sue_pO5sBjCUjl26gEEXOXG0C5C539AhDEE,473
2
+ onlykey_agent-1.1.17.data/scripts/onlykey_agent.py,sha256=fR3nz296Sue_pO5sBjCUjl26gEEXOXG0C5C539AhDEE,473
3
+ onlykey_agent-1.1.17.dist-info/METADATA,sha256=RfGkJpHcvMtrM0eCIKOnir-1xBiQVrLQjelx0ykO_5I,3907
4
+ onlykey_agent-1.1.17.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ onlykey_agent-1.1.17.dist-info/entry_points.txt,sha256=xYqHfP7Ya27bthOmP-jDGyvLUXCceVhh_-7v2k0cjHo,139
6
+ onlykey_agent-1.1.17.dist-info/top_level.txt,sha256=jAsFjarlf_Wib7FV_4OsgZc5aPfNur_-Y-CjQt7XDKs,14
7
+ onlykey_agent-1.1.17.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ onlykey-agent = onlykey_agent:ssh_agent
3
+ onlykey-gpg = onlykey_agent:gpg_tool
4
+ onlykey-gpg-agent = onlykey_agent:gpg_agent
@@ -0,0 +1 @@
1
+ onlykey_agent
onlykey_agent.py ADDED
@@ -0,0 +1,12 @@
1
+ from libagent import age, signify, gpg, ssh
2
+ from libagent.device.onlykey import OnlyKey as DeviceType
3
+
4
+ ssh_agent = lambda: libagent.ssh.main(DeviceType)
5
+ gpg_tool = lambda: libagent.gpg.main(DeviceType)
6
+ gpg_agent = lambda: libagent.gpg.run_agent(DeviceType)
7
+
8
+ age_tool = lambda: age.main(DeviceType)
9
+ ssh_agent = lambda: ssh.main(DeviceType)
10
+ gpg_tool = lambda: gpg.main(DeviceType)
11
+ gpg_agent = lambda: gpg.run_agent(DeviceType)
12
+ signify_tool = lambda: signify.main(DeviceType)