Skip to content

Instantly share code, notes, and snippets.

View Eoic's full-sized avatar
🎯
Focusing

Karolis Strazdas Eoic

🎯
Focusing
View GitHub Profile
@Eoic
Eoic / caesar.py
Last active July 10, 2025 15:24
Caesar cipher in Python.
import sys
from typing import Literal
def _leading(char: str) -> str:
return ord('A') if char.isupper() else ord('a')
def _encode(text: str, key: int) -> str:
encoded = ""
for char in text:
### Keybase proof
I hereby claim:
* I am eoic on github.
* I am eoic (https://keybase.io/eoic) on keybase.
* I have a public key ASA2j6FRPSXIE4BRZb3wceunG3MonhbeiziLOnKqYovv0Ao
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am eoic on github.
  • I am eoiic (https://keybase.io/eoiic) on keybase.
  • I have a public key ASD9h_0XKwT3vIa7rpRSHQQWKQQao35nT0FxL2y1SWdQrgo

To claim this, I am signing this object: