/computer-security

A simple counter app where multiple users can login using a client and modify their counter by incrementing either up or down using all possible security measures

Primary LanguageJava

Computer Security - Client/Server Project

A simple counter app where multiple users can login using a client and modify their counter by incrementing either up or down securely

Screenshot from 2022-11-05 11-10-52

API Specification

There are 4 request URLs:

  • /auth
  • /increase
  • /decrease
  • /logout

/auth

Query:

{
  "id": "username",
  "password": "pass",
  "server": {
     "ip": "127.0.0.1",
     "port": 52660
  },
  "actions": {
    "delay": 100,
    "steps": [
      "INCREASE 1", "INCREASE 1", "INCREASE 1", "DECREASE 1", "INCREASE 1"
    ]
  }
}

Response:

{
  "jwt": "1pass"
}

/increase

Query:

{
  "id": "username",
  "jwt": "1pass",
  "amount": 1
}

Response:

{
  "counter": 1
}

/decrease

Query:

{
  "id": "username",
  "jwt": "1pass",
  "amount": 1
}

Response:

{
  "counter": 1
}

/logout

Query:

{
  "id": "username",
  "jwt": "1pass"
}

Response:

{
  "id": "username"
}