Simple REST API server providing text encryption and decryption service.
parameters
- text
- password
response
{"ciphertext":"upYAR29CYgqPzkp5gclTuA=="}
parameters
- ciphertext
- password
response
{"text":"hello"}
curl -X POST -d 'text=hello&password=superSecretPassword' http://localhost:8000/encrypt
curl -X POST -d 'ciphertext=QPAy5ccigmxMXxmni9Cgng==&password=superSecretPassword' http://localhost:8000/decrypt
composer install
php -S 0.0.0.0:8000 public/index.php
docker compose build
docker compose up
The MIT License (MIT). Please see License File for more information.