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

Uploaded Python 3

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

Hashes for cipher_util-0.8.tar.gz
Algorithm Hash digest
SHA256 612e1fd2761f1c59546d183a675f8e61fed35be0bb3da2531caa40769ac7faf5
MD5 dc197e18885b7a5ba4409e26cefcfbd0
BLAKE2b-256 10105a11a30e75362850dd3bf598c39b3380b2cc5bc8ca27ecd7f96ddd0b90d6

See more details on using hashes here.

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

Hashes for cipher_util-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f17f78c7b8db2b06441b7380789354d01a86dad3cfe2816889edce72d44fe786
MD5 8feb84886c5eb7df66009a42a4a3c9b7
BLAKE2b-256 30c13092c598c3d0305d0855ebe0c01eabfaf0b04b9554cb5d9e402206c08df1

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