cryptography/caesar.py

2 lines
88 B
Python

def caesar(k : int, plain : str) -> str:
return str([chr(ord(c) + k) for c in plain])