MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / __init__

Method __init__

ciphers/xor_cipher.py:21–28  ·  view source on GitHub ↗

simple constructor that receives a key or uses default key = 0

(self, key = 0)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected