simple constructor that receives a key or uses default key = 0
(self, key=0)
| 20 | |
| 21 | class XORCipher(object): |
| 22 | def __init__(self, key=0): |
| 23 | """ |
| 24 | simple constructor that receives a key or uses |
| 25 | default key = 0 |
| 26 | """ |
| 27 | |
| 28 | # private field |
| 29 | self.__key = key |
| 30 | |
| 31 | def encrypt(self, content, key): |
| 32 | """ |