Lines Matching refs:binascii
5 # Modified 04-Oct-1995 by Jack Jansen to use binascii module
11 import binascii
42 # Base64 encoding/decoding uses binascii
55 encoded = binascii.b2a_base64(s)[:-1]
76 return binascii.a2b_base64(s)
77 except binascii.Error, msg:
235 parts.append(binascii.unhexlify('%010x' % acc))
239 last = binascii.unhexlify('%010x' % acc)
266 return binascii.hexlify(s).upper()
284 return binascii.unhexlify(s)
290 # binascii has any line length limitations. It just doesn't seem worth it
307 line = binascii.b2a_base64(s)
317 s = binascii.a2b_base64(line)
326 pieces.append(binascii.b2a_base64(chunk))
332 return binascii.a2b_base64(s)