Skip to main content

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:

  1. Open the text file on your computer (using Notepad, TextEdit, etc)
  2. Select the entire content of the text file and copy it
  3. Create a new note in Standard Notes and set its type to Plain Text
  4. Paste the contents of the text file into Standard Notes
  5. 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

sntotpconverter-1.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sntotpconverter-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file sntotpconverter-1.0.1.tar.gz.

File metadata

  • Download URL: sntotpconverter-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for sntotpconverter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 55fa208386c5d49da01658c0bc627c2245e02ba5ed82c6f689f4c6559b828b21
MD5 17cab6b751f5f212fbfef6196a33f38b
BLAKE2b-256 d4c79952ae7440767afdaf6b3521b0dd52fd41ef08e98c69d2c985cc4a3d7cbb

See more details on using hashes here.

File details

Details for the file sntotpconverter-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sntotpconverter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 089a9d3858511e7b269790a51c60484517b2bcdabae777a72ed5b4e93f5039fb
MD5 00e683169f8d39417af280d9f69fabca
BLAKE2b-256 b4bca461661c6075c2de0a1166acb58e2efaac08f4b2df43240990a1a3bd09d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page