Giter Site home page Giter Site logo

sigfrodr / lan-nfc-computer-unlocker Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 1.28 MB

LaNCer - NFC computer unlocker with centralized user management

License: GNU General Public License v3.0

Arduino 9.52% ApacheConf 0.36% CSS 39.81% JavaScript 29.09% PHP 14.64% HTML 6.59%

lan-nfc-computer-unlocker's Introduction

LaNCer (lan-nfc-computer-unlocker)

Lancer is a client/server nfc computer unlocker.

Architecture

  • One or several Arduino(s) can be used as client(s).
  • There is a centralized user management on the server.
  • When a user scan a nfc tag on the Arduino, an access request is made to the server via a webservice.
  • If the tag is recognized, then the password is entered via the Arduino keyboard (the computer is locked first to avoid writing the password anywhere).

Warning

The encryption used is weak (xor + base64), plus the card id (which can be falsifiable) is used to identify the user. Don't use this in a production environement.

Notes

  • If there is a user's switch on a computer, the new account must be selected before scanning the tag, otherwiser the wrong account will be used.
  • The unlocker part can easily be customized to unlock more than only computers (doors, etc). In this case, the Leonardo is not a requirement (it is only for the emulated keyboard).

Hardware requirements

  • Arduino Leonardo
  • Adafruit PN532 shield
  • Ethernet shield

Software requirements

  • Apache, MySQL, PHP
  • Composer
  • Arduino IDE with following libraries: adafruit/Adafruit-PN532, bblanchon/ArduinoJson, agdl/Base64

Installation

  • Initialize MySQL DB with provided script.
  • Server: use Composer to install dependencies. Configure DB and encryption key in src/settings.php.
  • Client: configure server, subfolder, encryption key (must be the same as the key on the server) and OS. Upload the code onto the Arduino.

Usage

  • Add a user: grab the user's NFC card id via the serial console on the Arduino IDE. Create a new user with this card id and his password on the server's admin interface.

lan-nfc-computer-unlocker's People

Contributors

sigfrodr avatar

Stargazers

 avatar Tomflo avatar

Watchers

James Cloos avatar Tomflo avatar  avatar

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.