Skip to content
View Adedayooyetunji's full-sized avatar

Block or report Adedayooyetunji

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please donโ€™t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this userโ€™s behavior. Learn more about reporting abuse.

Report abuse
Adedayooyetunji/README.md

This Python program demonstrates the Caesar Cipher algorithm for encrypting and decrypting messages. It's a simple substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet based on a user-defined key (shift value). This project is useful for learning basic cryptography, Python string handling, and user input. def encrypt(text, shift): result = for char in text: if char.isalpha(): shift_base = 65 if char.isupper() else 97 result += chr ((ord(char) - shift_base + shift) & 26 + shift_base) else: result += char return result def decrypt(text, shift) : return encrypt(text, -shift)

Example usage

message = input ("Enter your message: ") shift = int(input ("Enter shift number: ")) encrypted = encrypt (message, shift) print("Encrypted message:", encrypted) decrypted = decrypt (encrypted, shift) print ("Decrypted message:", decrypted)

Popular repositories Loading

  1. capstone-project-tsacademy capstone-project-tsacademy Public

    This repository is a production-grade AWS implementation of the Cloud-Native TaskApp Deployment challenge. It answers the same mission: deploy a highly available, secure, and automated Kubernetes-bโ€ฆ

    1

  2. Capstone-project-tsacademy-NEW Capstone-project-tsacademy-NEW Public

    This repository is a production-grade AWS implementation of the Cloud-Native TaskApp Deployment challenge. It answers the same mission: deploy a highly available, secure, and automated Kubernetes-bโ€ฆ

    1

  3. adedayooyetunji.github.io adedayooyetunji.github.io Public

    DevOps, cloud infrastructure and cybersecurity portfolio for Adedayo Oyetunji

    CSS 1

  4. PRODIGY--CS---01 PRODIGY--CS---01 Public

    Caesar Cipher Encryption and Decryption in Python

  5. Adedayooyetunji Adedayooyetunji Public

    Config files for my GitHub profile.

  6. PRODIGY-CS-02 PRODIGY-CS-02 Public

    mage Encryption & Decryption Tool using Pixel Manipulation in Python Image Encryption & Decryption Tool using Pixel Manipulation in Python