Git Product home page Git Product logo

adapted-chaum-pedersen's Introduction

Adapted-Chaum-Pedersen

This repo is an example of adapting the Chaum–Pedersen protocol for 1 factor authentication.

Usage

You can run the client-server authentication in a few different ways:

  • Nix
  • Rust
  • Docker

Nix

Install Nix

Full instructions on how to install Nix can be found here but the recommended why is:

sh <(curl -L https://nixos.org/nix/install) --daemon

Enable Flakes

There are a few ways to enable flakes depending on environment; they are listed here.

Usage

After flakes have been enabled, the environment can be bootstrapped by running:

nix develop --impure

Note: You will need to do this in two different terminal windows; one for the server and one for the client

In the first terminal simply run:

server

This will run the server half locally on port 8080.

In the second window, you will need to register your secret password first. This can be done by running:

register <username>

You will be asked to enter a secret password that corresponds to the username.

Once registered, you can attempt to authenticate by running:

authenticate <username>

You will once again be asked to enter the secret password, and if it is the same password that you registered, you should get a successful authentication message.

adapted-chaum-pedersen's People

Contributors

glottologist avatar

Watchers

 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.