Skip to content

FihriSina/Caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Caesar Cipher Python Implementation

This is a simple implementation of the Caesar Cipher encryption algorithm in Python. It shifts each letter in the input message by a given number of positions in the alphabet.

About the Project

The project demonstrates how to implement a classic encryption technique called the Caesar Cipher. The algorithm works by shifting each letter of the message by a specific number (offset) within the alphabet, while leaving spaces unchanged.

This project was developed as part of my learning journey with FreeCodeCamp. The goal is to better understand encryption algorithms and how to implement them in Python.

How it Works

The program takes two inputs:

  1. message - The plain text you want to encrypt.
  2. offset - The number by which to shift the letters in the message.

Example

text = 'Hello Zaira'
shift = 3
caesar(text, shift)
  • The plain text "Hello Zaira" would be shifted by 3 positions to give the encrypted text "khoor cbldu".

How to Use

  1. Clone this repository:

    git clone https://github.com/FihriSina/caesar-cipher.git
  2. Run the script with Python:

    python Ceaser.py
  3. Modify the text and shift variables to test different inputs and shifts.

License

This project is open source and available under the MIT License.

Acknowledgements

  • This project was created as part of my learning journey with FreeCodeCamp. The tutorial helped me understand how basic encryption algorithms work in Python.

Caesar Şifreleme Python Uygulaması

Bu proje, Caesar Şifreleme algoritmasının Python dilinde basit bir uygulamasını içerir. Algoritma, her harfi verilen bir sayı kadar alfabenin içinde kaydırarak şifreler.

Proje Hakkında

Bu proje, klasik bir şifreleme tekniği olan Caesar Şifreleme algoritmasının nasıl çalıştığını gösteriyor. Algoritma, mesajdaki her harfi belirli bir sayıda (offset) kaydırarak şifreler, boşluklar ise değiştirilmez.

Bu proje, FreeCodeCamp ile öğrenim yolculuğumun bir parçası olarak geliştirildi. Amaç, şifreleme algoritmalarını daha iyi anlamak ve Python dilinde nasıl uygulanacaklarını öğrenmektir.

Nasıl Çalışır?

Program iki girdi alır:

  1. message - Şifrelenecek düz metin.
  2. offset - Harfleri kaydırmak için kullanılan sayı.

Örnek

text = 'Hello Zaira'
shift = 3
caesar(text, shift)
  • "Hello Zaira" düz metni, 3 basamağa kaydırılarak "khoor cbldu" şifreli metnine dönüşür.

Nasıl Kullanılır?

  1. Bu repo'yu klonlayın:

    git clone https://github.com/FihriSina/caesar-cipher.git
  2. Python ile script'i çalıştırın:

    python Ceaser.py
  3. Farklı girişler ve kaydırmalar test etmek için text ve shift değişkenlerini değiştirebilirsiniz.

Lisans

Bu proje açık kaynaklıdır ve MIT Lisansı altında yayınlanmaktadır.

Teşekkürler

  • Bu proje, FreeCodeCamp ile öğrenim yolculuğumun bir parçası olarak oluşturulmuştur. Tutorial, temel şifreleme algoritmalarının Python'da nasıl çalıştığını anlamama yardımcı oldu.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages