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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cipher_util-0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 2063441f439177ab0119e9df2f6a7b849b6e8f189f8866cb3f321f50ef2b7a17
MD5 b19cf9fd6ea4f29b9db98023fc108e3a
BLAKE2b-256 ed3a2bf2fc7b2a42d8a50c8963f1231ebb5a9d60dff54e85c514b5519bc72c05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cipher_util-0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ec47b2daa88b1c959523f928140108a471a2516a64a9344d555837770d275c67
MD5 a1fb5b8df993e49c14766d20c6814c89
BLAKE2b-256 c03c04083b7a17f0d83cd8a14ffa54f9fbc940b72f05a5fd6f32032cb0b3042b

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