Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/moritzsternemann/qgoogleauthenticator

A library for Qt providing Google Authenticator features
https://github.com/moritzsternemann/qgoogleauthenticator

Last synced: 16 days ago
JSON representation

A library for Qt providing Google Authenticator features

Awesome Lists containing this project

README

        

QGoogleAuthenticator
====================

*Library optimized for Qt 5.2.0*

A [Google Authenticator](http://code.google.com/p/google-authenticator/) library including the following features:
* Generate a Google Authenticator secret
* Check a code
* Get a new code based on timestamp

How to build
------------
* Open .pro in QtCreator, specify build directory for release and/or debug target and hit "Build"
* Or: run qmake and make from command line

How to use
----------

In your .pro file add:
```
LIBS += ""
```

And in your source add:
```
#include "qgoogleauthenticator.h"
```
WARNING: You need to have access to base32.h, hmac.h and qgoogleauthenticator_global.h in qgoogleauthenticator.h

* To generate a new secret call ```QGoogleAuthenticator::generate_secret();```
* To check a code call ```QGoogleAuthenticator::checkCode(, );```
* To get a new code call ```QGoogleAuthenticator::getCode(,