mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-12 09:49:46 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf96148461 | ||
|
|
5dc155f556 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,4 @@
|
||||
generated_python/__pycache__/
|
||||
qr/
|
||||
venv/
|
||||
|
||||
|
||||
12
README.md
12
README.md
@@ -28,6 +28,18 @@ For printing QR codes, the qrcode module is required
|
||||
|
||||
pip install qrcode[pil]
|
||||
|
||||
### Alternative installation method
|
||||
|
||||
Alternatively, you can use a python virtual env for the dependencies:
|
||||
|
||||
python -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -r requirements-buildenv.txt
|
||||
pip install -r requirements.txt
|
||||
|
||||
The requirements\*.txt files contain all the dependencies (also the optional ones).
|
||||
To leave the python virtual env just call `deactivate`.
|
||||
|
||||
## Technical background
|
||||
|
||||
The export QR code of "Google Authenticator" contains the URL `otpauth-migration://offline?data=...`.
|
||||
|
||||
@@ -78,7 +78,7 @@ def save_qr(data, name):
|
||||
def print_qr(data):
|
||||
qr = QRCode()
|
||||
qr.add_data(data)
|
||||
qr.print_tty()
|
||||
qr.print_ascii()
|
||||
|
||||
i = j = 0
|
||||
for line in (line.strip() for line in fileinput.input(args.infile)):
|
||||
|
||||
1
requirements-buildenv.txt
Normal file
1
requirements-buildenv.txt
Normal file
@@ -0,0 +1 @@
|
||||
wheel
|
||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
protobuf
|
||||
qrcode
|
||||
Pillow
|
||||
Reference in New Issue
Block a user