Simple encryption REST API written with Flask framework
Furkan Kalkan c59cb7a649 Base64 format changed to urlsafe | 2 years ago | |
---|---|---|
.github | 3 years ago | |
src | 2 years ago | |
.gitignore | 3 years ago | |
Dockerfile | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
docker-compose.yml | 3 years ago | |
nginx.conf | 3 years ago | |
requirements.txt | 3 years ago |
Basic Rest API microservice that encrypt/decrypt text using AES
This project written with Flask web framework. It use flask-smorest for REST API and Pyctuator for actuator endpoint.
Pre-built images are here: https://hub.docker.com/r/mantissoftware/encryption-service
To run pre-built image, run
docker run -p 5000:5000 -e __SERVICE_AES_KEY=<base64_aes_key> -e __SERVICE_AES_IV=<base64_aes_iv> mantissoftware/encryption-service
and go http://localhost:5000/swagger-ui to access Swagger-UI
Run docker-compose build
to build your own image.
⚠️ You have to change __SERVICE_AES_KEY and __SERVICE_AES_IV environment variables before build & deploy your own image
To test your image, run docker-compose run
and go http://localhost/swagger-ui to access swagger-ui
⚠️ Don't forget to set __SERVICE_ACTUATOR_BASE_URI environment variable (Value: http(s):///)