oathqr

Turn your secrets into scannable QR codes.

Usage no npm install needed!

<script type="module">
  import oathqr from 'https://cdn.skypack.dev/oathqr';
</script>

README

OATHqr

Turn your secrets into scannable QR codes.

OATHqr helps you create security credentials for use with 2FA/MFA and other OATH-enabled apps. Use it to generate scannable QR codes for one-time password authenticator apps such as Aegis or YubiKey. Or skip the QR code altogether and paste the formatted otpauth URI it creates directly into OpenPGP-activated password managers such as the remarkable Pass standard unix password manager.

Highlights

  • Makes no external requests and runs offline-first.
  • Installable to mobile device home screens.
  • Defaults browser to strict Content-Security Policy.
  • Informs users when they are using a trusted origin.
  • Discourages user from saving QR code to a file.
  • Proactively disables FLoC surveillance in Chrome.
  • Provides accessible form for more inclusive design.
  • Promotes ethical software alternatives to Google.
  • Adjusts color scheme based on system preference.
  • Includes native build target for extra isolation.

Screenshots

OATHqr adapts its colors based on your current system preference:

Prefers Light Prefers Dark
Light Mode Dark Mode

Demo

View the online demo to test it out and see how it works.

Developing

Depending in your target environment.

Web

Once you've cloned the project and installed development dependencies with pnpm install, start a development server:

pnpm dev

# or start the server and open the app in a new browser tab
pnpm dev -- --open

Native

Once you've cloned the project, completed the Tauri prerequisites and installed development dependencies with pnpm install, start a development server:

pnpm tauri dev

Building

Web

To create a production version of your app:

pnpm build

You can preview the production build with pnpm preview.

Native

To create a native version of your app:

pnpm tauri build

Rights

OATHqr - Turn your secrets into scannable QR Codes.
Copyright (C) 2022 VHS <vhsdev@tutanota.com> (https://vhs.codeberg.page)

OATHqr is made available under the AGPL-3.0-or-later license. See the file COPYING in the source for the complete license text. To purchase a commercial license for the purpose of whitelabeling this application within your organization please contact the author.