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.7.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.7-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cipher_util-0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 874b31ce6138b27b4f8c638c7b4abddb3c76cb0246813c679c8eaa896dea7e0a
MD5 7ac8c1adb9667802fc623bcf0de1a750
BLAKE2b-256 7e358cb375c84bdc393be69d74a5c3a99fffa544aacea450b52c17e75c62d838

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cipher_util-0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5d0c6f18f50fbf72c07e6c71cce73080a53832cd7cb91d884731e6180b5baca8
MD5 4cb4a54cc236f9137bf74ff3cb59338f
BLAKE2b-256 4fbb5072fd05ae4810e1108f5d72fc3f8b8a4734bb626b55e6addfff2690b44d

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