Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. wynik = open("wynik.txt", "w")
  2. dane = open("dane.txt", "r")
  3. x = dane.readline()
  4. haslo = []
  5. zmienione_haslo = []
  6. z = int(input("Podaj cyfre do zmiany hasla: "))
  7. for i in x:
  8.     haslo.append(ord(i) + z)
  9. for i in haslo:
  10.     zmienione_haslo.append(chr(i))
  11. szyfr = ''.join(zmienione_haslo)
  12. wynik.write(szyfr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement