Skip to main content

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 the CaesarCipher class for text encryption and decryption.
  • cipher_tool.py: Utilizes the CaesarCipher class to provide a ciphering function.
  • cipher_api.py: Flask application for exposing the ciphering functionality as a web API.

Usage

  1. Start the Flask server:

  2. 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
      }
      
  3. 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}
      

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

cipher_util-0.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cipher_util-0.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file cipher_util-0.6.tar.gz.

File metadata

  • Download URL: cipher_util-0.6.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

Hashes for cipher_util-0.6.tar.gz
Algorithm Hash digest
SHA256 e74c70a5b7f3c3f22752ee06c9634d8113d40a1d5913dbd2096f5bb9f0262db3
MD5 df36747658900756b4f676f58bd90f7e
BLAKE2b-256 d0b036f9b627afc3a1b710796f26e1abd5e0a066ad3611863393b786d6ff6004

See more details on using hashes here.

File details

Details for the file cipher_util-0.6-py3-none-any.whl.

File metadata

  • Download URL: cipher_util-0.6-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

Hashes for cipher_util-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9b33098bb60d1b2b1716cd9e2d7a499041035a09e47b3d1113f9ee409f29be36
MD5 768278cc830896904f0d34cb2007bf76
BLAKE2b-256 e88a1c0636d9402166f8935e127b4080138481a66c616484f791d1f3a9ca9148

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page