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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cipher_util-0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 ab622f56f1bb72d9d126a16a51eea82339213fa7032c0a3c3dda368fdec1321f
MD5 63d32abc1ee99aad7d52f6ebda5e7572
BLAKE2b-256 70c2b3dcc338310104cad812e8260c4ae2df275af7cf9b4e40e0ab9bd43ad45f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cipher_util-0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 99925155ad0b4d9ad9071f9366711212c1a71bc6d8ce99e8dfebea3ff9c43037
MD5 6550e8d591ea2ee505847994f4f2595c
BLAKE2b-256 e8f6c197acbcee507f48349e2c539edc029ed89078340963690d41a157b6bc74

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