Encrypt plain text using simple encryption i.e: Caesar, Morse, etc.
Available methods:
- Caesar
- Morse
- Numeric
- Inverse Numeric
- NATO alphabet
Encrypts plain text using the Caesar method
Code | Description |
---|---|
200 | Successful Response |
400 | Bad Request |
422 | Validation Error |
429 | Rate Limit Exceeded |
Encrypts plain text using the Morse method
Code | Description |
---|---|
200 | Successful Response |
400 | Bad Request |
422 | Validation Error |
429 | Rate Limit Exceeded |
Encrypts plain text using the Numeric method
Code | Description |
---|---|
200 | Successful Response |
400 | Bad Request |
422 | Validation Error |
429 | Rate Limit Exceeded |
Encrypts plain text using the Reverse Numeric method
Code | Description |
---|---|
200 | Successful Response |
400 | Bad Request |
422 | Validation Error |
429 | Rate Limit Exceeded |
Encodes plain text using the NATO alphabet method
Code | Description |
---|---|
200 | Successful Response |
400 | Bad Request |
422 | Validation Error |
429 | Rate Limit Exceeded |
To install dependencies please make sure you have Python installed and use
pip install -r requirements.txt
to install FastAPI and all it's dependencies
run uvicorn main:app --reload
the --reload
flag enables hot reload on saving any changes
-
To use the API in docker using the Dockerfile
- run
docker build -t encryptorapi .
to build the image - run
docker run -it --rm --name encryptorapi -p 8000:8000 encryptorapi
to start a container with the address127.0.0.1:8000
- run
-
To use docker-compose
run
docker-compose up
to spin up a stack of an NGINX server and the API.