Skip to content

Instantly share code, notes, and snippets.

@ageis
ageis / showqrcode.c
Last active September 23, 2024 22:33
A utility to display QR codes in the CLI/terminal. To build, run `gcc showqrcode.c -ldl -o showqrcode`
// showqrcode: A utility to display QR codes in the terminal.
// Copyright © 2019 Kevin Gallagher <[email protected]>
// Modified and based upon original code from libpam-google-authenticator:
// https://github.com/google/google-authenticator-libpam
// The original license is printed below.
//
// Helper program to generate a new secret for use in two-factor
// authentication.
//
// Copyright 2010 Google Inc.