Searched refs:b16encode (Results 1 – 7 of 7) sorted by relevance
215 eq(base64.b16encode('\x01\x02\xab\xcd\xef'), '0102ABCDEF')216 eq(base64.b16encode('\x00'), '00')218 eq(base64.b16encode(bytearray('\x01\x02\xab\xcd\xef')), '0102ABCDEF')
363 eq(base64.b16encode(b'\x01\x02\xab\xcd\xef'), b'0102ABCDEF')364 eq(base64.b16encode(b'\x00'), b'00')366 self.check_other_types(base64.b16encode, b'\x01\x02\xab\xcd\xef',368 self.check_encode_type_errors(base64.b16encode)
258 def b16encode(s): function
247 def b16encode(s): function
105 .. function:: b16encode(s)
139 .. function:: b16encode(s)
966 return base64.b16encode('HQE') + hex(hqe_id)[2:]