def bytesToHexStr(bytesInput):
"""Converts byte array to hex str
:param bytesInput: byte array to convert
:type bytesInput: byte-array
:return: Hex string representing bytesInput
"""
return codecs.encode(bytesInput, 'hex').decode('ascii')
评论列表
文章目录