Script for importing/exporting TOTP 2-factor authentication codes for Standard Notes.
Project description
Standard Notes TOTP Converter
A Python script for converting a list of TOTP URIs to the JSON format used by Standard Notes's "Authenticator" note type, and vice versa.
Usage
You can tell the script to import to or export from Standard Notes.
Importing
When importing, you provide a file path to a text file containing a list of TOTP URIs. They start with otpauth:// and will usually contain a service name, account name (username/email address), and a secret code.
If the script can't find an account name, you will be asked for one. If it can't find the service name, it will be replaced by [Unknown Service].
The output when importing will be in JSON that you can use in Standard Notes. To import into SN:
- Open the text file on your computer (using Notepad, TextEdit, etc)
- Select the entire content of the text file and copy it
- Create a new note in Standard Notes and set its type to Plain Text
- Paste the contents of the text file into Standard Notes
- Change the note type to Authenticator
Exporting
The input will be a file path to a text file containing the JSON data from Standard Notes. The script will convert the JSON data back into a list of TOTP URIs in a text file that can be imported by some authenticator apps. You can also use a QR code generator on the URIs to create the TOTP QR code that can be used to add the codes to an authenticator app on your phone.
Security Considerations
Do not handle your TOTP codes on computers you do not trust, and I would recommend deleting files containing the information from your computer when done to make sure your codes don't fall into the wrong hands. If someone has your password and the files with the TOTP secrets in them, they can sign into your accounts.
This script does not use the Internet at all when converting codes, the conversion is handled entirely in the script.
Credits/License
The code in this repository is licensed under the MIT License.
The trademark of Standard Notes is owned by Standard Notes Ltd. The software itself is open-source at https://github.com/standardnotes.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sntotpconverter-1.1.0.tar.gz.
File metadata
- Download URL: sntotpconverter-1.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d15077e24fd07402a818d6dcfe1ac473920a8f24fe045e2cae84ea33f18fa65
|
|
| MD5 |
61923aa817019a3f113d28116da5759c
|
|
| BLAKE2b-256 |
ddc6d99ff21132a80237bcb75335a47daf2a945f3953a722bf955bb19c5100ee
|
File details
Details for the file sntotpconverter-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sntotpconverter-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1a1a56cb4d43155f3cf42651801b205b6fdbd9810450ab6a27f15c51ac94243
|
|
| MD5 |
62025fbc127fbdfd4485aee202c90d90
|
|
| BLAKE2b-256 |
73b022cbf9293bb34ae2087c8b124d06472fed134ca844f96cf21eed0e3a80d0
|