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
- Host: GitHub
- URL: https://github.com/hubert-kniola/rsacipher
- Owner: hubert-kniola
- Created: 2021-04-13T18:13:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T12:18:18.000Z (over 4 years ago)
- Last Synced: 2023-09-05T07:15:18.517Z (about 2 years ago)
- Topics: docker, fastapi, python
- Language: Python
- Homepage:
- Size: 226 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RSACipher
Simple RSA cipher with FastAPI & UnittestsTitle: 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
![]()