You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Ported TrezorPass to from Python 2.7 to Python 3.4+.
* It works now on both, Python 2.7 and Python 3.4+.
* Ported from PyQt4 and Qt4 to PyQt5 and Qt5.
* It does no longer support PyQt4/Qt4.
* Unicode character can now be used everywhere: groupnames, keys, passwords, comments, csv import fields, csv export fields, etc.
* Bug fixes: csv export did not handle "\ pattern correctly
* Miscellaneous improvements.
* Improved inline documentation
* improved logging
Even though the whole code is in Python, there are few Qt .ui form files that
56
-
need to be transformed into Python files. There's Makefile, you just need to run
59
+
Even though the whole code is in Python, there are few Qt5 `.ui` form files that
60
+
need to be transformed into Python files. There is `Makefile`, you just need to run
57
61
58
62
make
59
63
60
64
## Build requirements
61
65
62
-
PyQt4 development tools are necessary, namely `pyuic4` (look for packages named
63
-
like `pyqt4-dev-tools` or `PyQt4-devel`).
66
+
* PyQt5 development tools are necessary, namely `pyuic5` (look for a package named
67
+
`pyqt5-dev-tools`, `PyQt5-devel` or similar). Required to run `make`.
68
+
* Depending on one's set-up one might need: `qttools5-dev-tools`
69
+
(also sets up some of the Qt5 environment variables)
70
+
* Depending on one's set-up one might need: `python-pyqt5` (Qt5 bindings for Python 2)
71
+
* Depending on one's set-up one might need: `python3-pyqt5` (Qt5 bindings for Python 3)
72
+
* Depending on one's set-up one might need: `python-pyqt5.qtsvg` (to display SVG logos in Python 2)
73
+
* Depending on one's set-up one might need: `python3-pyqt5.qtsvg` (to display SVG logos in Python 3)
64
74
65
75
# Running
66
76
67
77
Run:
68
78
69
79
python TrezorPass.py
80
+
or
81
+
82
+
python3 TrezorPass.py
70
83
71
84
On rare occasions one of the command line arguments might become useful:
72
85
@@ -111,6 +124,15 @@ See also [gpg on Trezor](https://github.com/romanz/trezor-agent/).
111
124
112
125
# FAQ - Frequently Asked Questions
113
126
127
+
**Question:** Can I help or contribute?
128
+
129
+
**Answer:**
130
+
131
+
Yes, you can. It would help a lot if you assist in getting the word out.
132
+
If you like the tool or like the idea please spread the word on Twitter, Reddit,
133
+
Facebook, etc. It will be appreciated. Furthermore, you can blog about it,
134
+
give feedback, review the code, contribute to the code, etc.
135
+
- - -
114
136
**Question:** I read something about an RSA key somewhere? Do I need to
115
137
create it? Can I use my own? Where is it? How many bits is it?
116
138
@@ -148,7 +170,7 @@ This string is stored in the QQtCore.QSettings.
148
170
- - -
149
171
**Question:** In which language is TrezorPass written?
150
172
151
-
**Answer:**[Python](https://www.python.org/) 2.7. It will currently not run on Python 3.
173
+
**Answer:**[Python](https://www.python.org/). It run on Python 2.7 and 3.4+.
152
174
- - -
153
175
**Question:** Do I need to have a [Trezor](https://www.trezor.io/) in order to use TrezorPass?
154
176
@@ -216,7 +238,7 @@ This string is stored in the QQtCore.QSettings.
216
238
- - -
217
239
**Question:** Is TrezorPass portable?
218
240
219
-
**Answer:** Yes. You can have all information on 2 files: the TrezorPass application and the password database file. Copy the 2 files (executable and data) onto a USB stick or SD card and carry them with you together with your Trezor. (Maybe in the future the files might be stored on the Trezor 2 on-device storage? Who knows?)
241
+
**Answer:** Yes. You can have all information on 2 files: the TrezorPass application and the password database file. Copy the 2 files (executable and data) onto a USB stick or SD card and carry them with you together with your Trezor. (Maybe in the future the files might be stored on the `Trezor 2` on-device storage? Pure speculation but Who knows?)
220
242
- - -
221
243
**Question:** Can I use TrezorPass on multiple computers? Can I sync it on multiple devices/computers?
**Question:** What if I lose my password database file?
321
343
322
-
**Answer:** Then you lost all your passwords. The passwords are **not** stored on the Trezor. The passwords are only stored in the password database file. So keep it safe. (Trezor 2 does not exist yet, but it might come with on-device storage in the future. In this future case you might store a copy of the password database file on the device. But even then you should keep a copy somewhere else as well.)
344
+
**Answer:** Then you lost all your passwords. The passwords are **not** stored on the Trezor. The passwords are only stored in the password database file. So keep it safe. (`Trezor 2` does not exist yet, but it might come with on-device storage in the future. In this future case you might store a copy of the password database file on the device. But even then you should keep a copy somewhere else as well.)
323
345
- - -
324
346
**Question:** Should I backup my password database file?
**Question:** On which platforms, operating systems is TrezorPass available?
333
355
334
-
**Answer:** On all platforms, operating systems where [Python](https://www.python.org/) 2.7 and [PyQt](https://en.wikipedia.org/wiki/PyQt) v4 is available: Windows, Linux, Unix, Mac OS X. Internet searches show Python and PyQt solutions for Android and iOS, but it has not been investigated or tested on Android or iOS.
356
+
**Answer:** On all platforms, operating systems where [Python](https://www.python.org/) 2.7 or 3.4+ and [PyQt](https://en.wikipedia.org/wiki/PyQt) v5 is available: Windows, Linux, Unix, Mac OS X. Internet searches show Python and PyQt solutions for Android and iOS, but it has not been investigated, built or tested on Android or iOS. It was only tested on Linux.
357
+
- - -
358
+
**Question:** Can I run on Qt4?
359
+
360
+
**Answer:** Yes, there is an old version (v3.0) that supports Qt4. Newer versions do not support PyQt4 but require PyQt5.
361
+
- - -
362
+
**Question:** Can I migrate from Python 2 to Python 3?
363
+
364
+
**Answer:** Yes, TrezorPass runs on both. So, you easily move your environment from Python 2 to Python 3.
365
+
- - -
366
+
**Question:** Can I migrate from Python 3 back to Python 2?
367
+
368
+
**Answer:** TrezorPass runs on both but the implementation of `pickle` is different on both versions.
369
+
The TrezorPass passwordd database file uses `pickle`. When you move from Python 3 back to Python 2 and
370
+
then want to run TrezorPass, you will get the error message `Critical: Could not decrypt passwords: unsupported pickle protocol: 4`and the program aborts. The workaround is to export your database to a CSV file in Python 3, then start with
371
+
an empty database file in Python 2 and import the CSV file. Then you are ready to go.
335
372
- - -
336
373
**Question:** Are there any warranties or guarantees?
0 commit comments