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

Function decode_string

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

Return a decrypted string.

(string, major, minor)

Source from the content-addressed store, hash-verified

68 return _encode(string, map_1, map_2)
69
70def decode_string(string, major, minor):
71 'Return a decrypted string.'
72 assert isinstance(string, str) and len(string) % 4 == 0
73 _check_major(major)
74 _check_minor(minor)
75 map_1 = _decode_map_1(minor)
76 map_2 = _decode_map_2(major)
77 return _decode(string, map_1, map_2)
78
79################################################################################
80

Callers

nothing calls this directly

Calls 5

_decode_map_1Function · 0.85
_decode_map_2Function · 0.85
_check_majorFunction · 0.70
_check_minorFunction · 0.70
_decodeFunction · 0.70

Tested by

no test coverage detected