No project description provided
Project description
Caesar Cipher API
Overview
This project implements a simple API using Flask for encrypting and decrypting text using the Caesar cipher.
Files
caesar_cipher.py: Contains theCaesarCipherclass for text encryption and decryption.cipher_tool.py: Utilizes theCaesarCipherclass to provide a ciphering function.cipher_api.py: Flask application for exposing the ciphering functionality as a web API.
Usage
-
Start the Flask server:
-
Access the API using a web browser or curl:
- Endpoint: http://localhost:5000/
- Method: GET
- Parameters (as JSON):
{ "string": "Hello Data Engineers", "key": 3, "encrypt": true }
-
Examples:
- Encrypt text:
http://localhost:5000/?params={"string":"Hello Data Engineers","key":3,"encrypt":true} - Decrypt text:
http://localhost:5000/?params={"string":"KHOOR GDWD HPSOHUHV","key":3,"encrypt":false}
- Encrypt text:
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For questions or support, contact me at omarshaker212@gmail.com.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cipher_util-0.8.tar.gz.
File metadata
- Download URL: cipher_util-0.8.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
612e1fd2761f1c59546d183a675f8e61fed35be0bb3da2531caa40769ac7faf5
|
|
| MD5 |
dc197e18885b7a5ba4409e26cefcfbd0
|
|
| BLAKE2b-256 |
10105a11a30e75362850dd3bf598c39b3380b2cc5bc8ca27ecd7f96ddd0b90d6
|
File details
Details for the file cipher_util-0.8-py3-none-any.whl.
File metadata
- Download URL: cipher_util-0.8-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f17f78c7b8db2b06441b7380789354d01a86dad3cfe2816889edce72d44fe786
|
|
| MD5 |
8feb84886c5eb7df66009a42a4a3c9b7
|
|
| BLAKE2b-256 |
30c13092c598c3d0305d0855ebe0c01eabfaf0b04b9554cb5d9e402206c08df1
|