Giter Site home page Giter Site logo

2falogin's Introduction

  • Harshit Khurana
  • 11.01.18

2FALogin : It is a program which provides 2Factor Authentication using Face recognition with the help of Kairos API.

  • As soon as you cross the Password based authentication on your system the 2FALogin will automatically begin and if the user(Image of user) does not matches, It will log you out and the login process will have to be started over from the top.

  • InCase the system is booted without internet access then 2FALogin will not run and user will directly be able to login. To counter this , Uncomment the line "os.system("killall -u whoami")" in 'Kairos_API_verify.py", Then if the internet is not available at booting time the user will not be allowed to login.

  • Incase using the 2FALogin wth Raspberry Pi and external USB Camera, ensure you skip around 5 frames( may varry) before using the actual frame/image for comparison.

    Could do this simply by replacing "ret,frame = cap.read() " in 'CameraCapture.py' with:

    for i in (0,5): ret,frame = cap.read()

Tried and Tested using python2.7 and Ubuntu 16.04.3 LTS/Raspberry Pi.

You need to have a kairos developer account in order to use the script.

Make an account at https://developer.kairos.com/signup and get the "app_id" and "app_key".

  • As of now, it does not support Windows.

INSTALLATION :

  • To install all the necessary dependencies run:

    pip install -r requirements.txt

  • To install 2FALogin in your system simply run:

    python Install.py

EXECUTION :

  • To execute 2FALogin simply run:

    python Run.py

2falogin's People

Contributors

khuranaharshit avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

khuranaharshit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.