cryptography/caesar.py

3 lines
88 B
Python
Raw Normal View History

2024-10-16 11:09:46 +02:00
def caesar(k : int, plain : str) -> str:
return str([chr(ord(c) + k) for c in plain])