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

Function decrypt_str

recipes/Python/578062_Markov/recipe-578062.py:467–471  ·  view source on GitHub ↗
(string, sudoku_key, boot_strap)

Source from the content-addressed store, hash-verified

465# plain_chars
466# - characters that you do not want to encrypt
467def decrypt_str(string, sudoku_key, boot_strap):
468 byte_obj = string.encode(CODEC, 'ignore')
469 plaintext = decrypt(byte_obj, sudoku_key, boot_strap)[0]
470 # return encrypted string, key, and original bootstrap
471 return plaintext.decode(CODEC, 'ignore')
472
473################################################################################
474

Callers 1

reevaluateMethod · 0.70

Calls 3

decryptFunction · 0.70
encodeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected