3 unstable releases

Uses new Rust 2021

0.1.0 Jan 14, 2022
0.0.5 Nov 22, 2020
0.0.4 Jul 1, 2020
0.0.3 Jul 1, 2020

#140 in Authentication

Download history 3/week @ 2021-10-09 1/week @ 2021-10-16 3/week @ 2021-10-23 7/week @ 2021-11-06 5/week @ 2021-11-13 14/week @ 2021-11-20 11/week @ 2021-11-27 8/week @ 2021-12-04 4/week @ 2021-12-11 9/week @ 2021-12-18 8/week @ 2021-12-25 12/week @ 2022-01-01 16/week @ 2022-01-08 14/week @ 2022-01-15

52 downloads per month

Custom license

5KB

Google Authenticator for Rust (GARS)

If you use Google Authenticator for multi-factor authentication (MFA) and would like to automate authentication, then GARS is for you.

Usage

Create an environment variable with your Google Authenticator secret:

export GA_SECRET=YOUR_GA_SECRET_HERE

Run gars from the command line.

$ gars
123456

gars will return the latest Google Authenticator generated number associated with the given GA secret to stdout.

Tested on Ubuntu Linux and Mac OS X.

Why was GARS created

MFA is great for added security but makes it difficult to automate things.

What is Google Authenticator

Google Authenticator is a software-based authenticator by Google that implements two-step verification services using the Time-based One-time Password Algorithm and HMAC-based One-time Password algorithm, for authenticating users of software applications.

It's also one of several mechanisms that Okta uses for MFA.

Credit

This is just a simple wrapper around the google-authenticator library.

Dependencies

~440KB

a