See https://github.com/str4d/rage/tree/main/age-plugin. Example usage: RAGE_DIR=$PWD/../Rust/rage (cd $RAGE_DIR; cargo build --all) export PATH=$PATH:$RAGE_DIR/target/debug age-plugin-trezor -i "John Doe" | tee trezor.id R=$(grep recipient trezor.id | cut -f 3 -d ' ') date | tee msg.txt rage -er $R < msg.txt > enc.txt rage -di trezor.id < enc.txt
43 lines
1.5 KiB
Python
43 lines
1.5 KiB
Python
#!/usr/bin/env python
|
|
from setuptools import setup
|
|
|
|
setup(
|
|
name='trezor_agent',
|
|
version='0.11.0',
|
|
description='Using Trezor as hardware SSH/GPG agent',
|
|
author='Roman Zeyde',
|
|
author_email='roman.zeyde@gmail.com',
|
|
url='http://github.com/romanz/trezor-agent',
|
|
scripts=['trezor_agent.py'],
|
|
install_requires=[
|
|
'libagent>=0.14.0',
|
|
'trezor[hidapi]>=0.13'
|
|
],
|
|
platforms=['POSIX'],
|
|
classifiers=[
|
|
'Environment :: Console',
|
|
'Development Status :: 4 - Beta',
|
|
'Intended Audience :: Developers',
|
|
'Intended Audience :: Information Technology',
|
|
'Intended Audience :: System Administrators',
|
|
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
|
'Operating System :: POSIX',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
'Topic :: System :: Networking',
|
|
'Topic :: Communications',
|
|
'Topic :: Security',
|
|
'Topic :: Utilities',
|
|
],
|
|
entry_points={'console_scripts': [
|
|
'trezor-agent = trezor_agent:ssh_agent',
|
|
'trezor-gpg = trezor_agent:gpg_tool',
|
|
'trezor-gpg-agent = trezor_agent:gpg_agent',
|
|
'trezor-signify = trezor_agent:signify_tool',
|
|
'age-plugin-trezor = trezor_agent:age_tool', # see https://github.com/str4d/rage/blob/main/age-plugin/README.md
|
|
]},
|
|
)
|