Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Security Hub API

This API is capable of generating passwords, validating them based on how secure they are and whether or not they have been found in a breach.

This API has 4 main functionalities

  1. Password Generation
  2. Password Validation/Analysis (How secure is the password? And is it a good password to use)
  3. Breach Checking (Has this password been found in a breach?) - This is achieved through HaveIBeenPwned's API to check for breached passwords
  4. Policy Validation (Does this password appropriately follow the requirements set out by the NCSC?)

In future versions and updates, it is plausible that the following may be implemented:

  • Environment modelling to display the dangers and concerns surrounding poor passwords and security
  • A vulnerabilities dashboard that is ideal for the cybersecurity team to check for vulnerabilities in security overall and adequately assess them

How to run

Clone & setup

git clone https://github.com/WAMAAK-200/Security-Hub-API cd Security-Hub-API python -m venv venv source venv/bin/activate pip install -r requirements.txt

Installing Docker

https://docs.docker.com/get-docker/

Run Locally

python run.py or python3 run.py

NOTE: If you plan on running this API locally, you will need to set up a .env file with the following variables:

  • DB_NAME
  • DB_USER
  • DB_PASSWORD
  • DB_HOST
  • DB_PORT
  • DATABASE_URL
  • SUPABASE_URL
  • SUPABASE_KEY

Additionally: these are the required HIBP variables for developing a .env file for local development:

Run with Docker

docker-compose up --build or docker compose up --build

Local Documentation & Authentication

http://localhost:8000/docs

Adaptation

If you wish to adapt this API for your own purposes, it may be ideal to create your own .env files as well as a supabase database

About

An API focused on basic security practices and evaluating them

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages