HTMLify
encrypt_xor_cipher.py
Views: 475 | Author: abh
1 2 3 4 5 | def encrypt_xor_cipher(text, key): cipher = "" for char in text: cipher += chr(ord(char) ^ key) return cipher |
1 2 3 4 5 | def encrypt_xor_cipher(text, key): cipher = "" for char in text: cipher += chr(ord(char) ^ key) return cipher |