An open API service indexing awesome lists of open source software.

https://github.com/hubert-kniola/rsacipher

Simple RSA cipher with FastAPI & Unittests
https://github.com/hubert-kniola/rsacipher

docker fastapi python

Last synced: 6 months ago
JSON representation

Simple RSA cipher with FastAPI & Unittests

Awesome Lists containing this project

README

          

# RSACipher
Simple RSA cipher with FastAPI & Unittests

Title: Recruitment task\
Author: **Hubert Knioła**

Completed tasks:
- RSA Cipher - *DONE*
- Encode and decode methods - *DONE*
- Simple Unit Tests - *DONE*
- FastAPI Server with previous methods - *DONE*
- BasicAuth FastAPI - *DONE*
- Code documentations - *DONE*
- Dockerization - *DONE*

**Starting the server as a container**
```bash
docker build -t cipher_api .
docker run -d --name apicontainer -p 80:80 cipher_api
```

**Starting the server locally**
```bash
uvicorn app.main:app --reload
```

**Running tests**
```bash
pytest app/tests_cipher.py
```

# TESTS



# BASIC AUTHENTICATION











# API ENDPOINTS & EFFECTS

REQUEST FORM /allinone



POST /allinone



GET /elements



POST /element/{id}



REQUEST FORM /encode



POST /encode



REQUEST FORM /decode



POST /decode