simple constructor that receives a key or uses default key = 0
(self, key: int = 0)
| 22 | |
| 23 | class XORCipher: |
| 24 | def __init__(self, key: int = 0): |
| 25 | """ |
| 26 | simple constructor that receives a key or uses |
| 27 | default key = 0 |
| 28 | """ |
| 29 | |
| 30 | # private field |
| 31 | self.__key = key |
| 32 | |
| 33 | def encrypt(self, content: str, key: int) -> list[str]: |
| 34 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected