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.
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.
The program takes two inputs:
message- The plain text you want to encrypt.offset- The number by which to shift the letters in the message.
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".
-
Clone this repository:
git clone https://github.com/FihriSina/caesar-cipher.git
-
Run the script with Python:
python Ceaser.py
-
Modify the
textandshiftvariables to test different inputs and shifts.
This project is open source and available under the MIT License.
- This project was created as part of my learning journey with FreeCodeCamp. The tutorial helped me understand how basic encryption algorithms work in Python.
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.
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.
Program iki girdi alır:
message- Şifrelenecek düz metin.offset- Harfleri kaydırmak için kullanılan sayı.
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.
-
Bu repo'yu klonlayın:
git clone https://github.com/FihriSina/caesar-cipher.git
-
Python ile script'i çalıştırın:
python Ceaser.py
-
Farklı girişler ve kaydırmalar test etmek için
textveshiftdeğişkenlerini değiştirebilirsiniz.
Bu proje açık kaynaklıdır ve MIT Lisansı altında yayınlanmaktadır.
- 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.