MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

XORcipher/XOR_cipher.py:22–29  ·  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

20
21class 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 """

Callers 1

test__init__Method · 0.45

Calls

no outgoing calls

Tested by 1

test__init__Method · 0.36