Question:
Write a Program to encrypt text by replacing each character by it’s successor.
Program:
1 2 3 4 5 6 7 8 9 |
plain_text = "GlobalSQA" encrypted_text = "" for c in plain_text: x = ord(c) x = x + 1 c2 = chr(x) encrypted_text = encrypted_text + c2 print(encrypted_text) |
1 |
HmpcbmTRB |
Leave a Reply