Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mantis-software-company/encryption-service
Basic Rest API microservice that encrypt/decrypt text using AES
https://github.com/mantis-software-company/encryption-service
Last synced: 4 days ago
JSON representation
Basic Rest API microservice that encrypt/decrypt text using AES
- Host: GitHub
- URL: https://github.com/mantis-software-company/encryption-service
- Owner: mantis-software-company
- License: apache-2.0
- Created: 2021-11-12T13:48:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T14:19:01.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T14:34:26.306Z (2 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# encryption-service
Basic Rest API microservice that encrypt/decrypt text using AESThis project written with [Flask web framework](https://flask.palletsprojects.com/en/2.0.x/). It use [flask-smorest](https://flask-smorest.readthedocs.io/en/latest/index.html) for REST API and [Pyctuator](https://github.com/SolarEdgeTech/pyctuator) for actuator endpoint.
## Running
Pre-built images are here:
https://hub.docker.com/r/mantissoftware/encryption-serviceTo run pre-built image, run
```
docker run -p 5000:5000 -e __SERVICE_AES_KEY= -e __SERVICE_AES_IV= mantissoftware/encryption-service
```and go http://localhost:5000/swagger-ui to access Swagger-UI
## Building your own image
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## Deployment
> ⚠️ Don't forget to set __SERVICE_ACTUATOR_BASE_URI environment variable (Value: http(s):///)