Giter Club home page Giter Club logo

distributed-password-manager's Introduction

SEC Project

Distributed password manager implemented in java

High dependable system

Project Structure

Maven projects:

  • keystore: Create and manage client keys

  • client: Client interface to communicate with server

  • server: Server with database

  • lib: Shared library code between other projects


Description

Our Password Manager is divided in 4 major projects: The Client, the Server, the KeyStore and the Lib. It is a RESTful system, so the Client and the Server communicate over HTTP, exchanging JSON Objects. For this process, we are using the Unirest Framework API in the Client-side to send requests, and the Spark Framework API on the Server-side to answer them. Both client and server depend on the Lib Project, that is a library that contains cryptographic methods and other shared code between the two sides of the system, and on the Keystore Project, an independent Key Manager, that generate and provides the client and the server a pair of Public/Private Keys.

Install and run

  • Install lib shared code

     cd lib
     mvn install
    
  • Generate keystore to Tests

     cd keystore
     mvn compile exec:java
    
     ...
     Enter username: username
     Enter password: password
     ...
    
  • Generate keystore to client

     cd keystore
     mvn compile exec:java
    
     ...
     Enter username: example
     Enter password: 123456789
     ...
    
  • Run in parallel

    • start 4 server replicas

       cd server
       source start.sh 4
      
      
    • client

     	cd client
     	mvn compile exec:java -Dexec.args="localhost 8080 4"
     	```
    
     	```
     	# 1. Call init
     	# 2. Login with username and password from keystore
     	# 3. Register
     	# 4. Put and/or get passwords
     	```
    

Tests

  • Run mvn tests on Lib
cd lib
mvn test
* List of available tests:

```
AESTest
DigitalSignatureTest
HashTest
HMACTest
NouncesTest
RSANoPaddingTest
RSATest
```
  • Run mvn tests on Client

create server / server KeyStore create username / password KeyStore

mvn test
  • Run a specific server
mvn test -Dtest=ReplayAttackTest
* List of available tests:

```
ClientTest
ConfidenceTest
ManInTheMiddleTest
ReplayAttackTest
ByzantineTest
```

distributed-password-manager's People

Contributors

joaogsleite avatar joaotomazio avatar tonyfreire avatar

Watchers

 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.