PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#cryptography
#enter some tekst in lower case
#output:
# 1. encrypted text using current time as key
# 2. decrypted tekst
from datetime import datetime
now = datetime.now().second
key = int(now/6)
ascii = [ord(i) for i in input()]
encrypted = [chr(i*2 + key) for i in ascii]
print(*encrypted)
decrypted = [chr(int((ord(i)-key)/2)) for i in encrypted]
print(*decrypted)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run