noc.lib.pyquote

Module Contents

noc.lib.pyquote.rx_unqoute
noc.lib.pyquote.hex_map
noc.lib.pyquote.bin_quote(s)

Quote binary data to ASCII-string >>> bin_quote(None) ‘’ >>> bin_quote(“A”) ‘A’

noc.lib.pyquote.bin_unquote(s)

Decode ASCII-encoded string back to binary

>>> [i for i in range(256) if bin_unquote(bin_quote(chr(i)))!=chr(i)]
[]