MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/572159_SPICE/recipe-572159.py:266–273  ·  view source on GitHub ↗

Initialize the String_Crypt object.

(self, major, minor)

Source from the content-addressed store, hash-verified

264 'String_Crypt(major, minor) -> String_Crypt'
265
266 def __init__(self, major, minor):
267 'Initialize the String_Crypt object.'
268 _check_major(major)
269 _check_minor(minor)
270 self.__em1 = _encode_map_1(major)
271 self.__em2 = _encode_map_2(minor)
272 self.__dm1 = _decode_map_1(minor)
273 self.__dm2 = _decode_map_2(major)
274
275 def encode(self, string):
276 'Return an encrypted string.'

Callers

nothing calls this directly

Calls 6

_encode_map_1Function · 0.85
_encode_map_2Function · 0.85
_decode_map_1Function · 0.85
_decode_map_2Function · 0.85
_check_majorFunction · 0.70
_check_minorFunction · 0.70

Tested by

no test coverage detected