-
Build image
docker build -t cipher-app . -
Run container
docker run -d -p 5000:5000 cipher-app -
Do a request to ping
curl --location 'http://127.0.0.1:5000/ping' -
Do a request to cipher
curl --location 'http://127.0.0.1:5000/cipher' --header 'Content-Type: application/json' --data '{"message":"message to cipher","key":"secret-key"}' -
Do a request to decipher
curl --location 'http://127.0.0.1:5000/decipher' --header 'Content-Type: application/json' --data '{"message":"DD6D3DE855CA69F84CB685456829392491","key":"secret-key"}'
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|