Skip to content

imzyxwvu/lua-gauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Lua Google Authenticator

This library can be used to check or generate the Google Authenticator's dynamic password. It also contains a fast base32 implement for Lua.

gauth = require "gauth"
seckey = "TESTtestTESTtest"
gauth.gencode(seckey, math.floor(os.time() / 30))
if gauth.check(seckey, io.read()) then
  print "Pass"
else
  print "Bad code"
end

About

Google Authenticator for Lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages