(buffer_, b64encode=True)
Computes the md5 digest of a byte buffer in base64 encoding.
Computes the md5 digest of a byte buffer in base64 encoding.
Computes the md5 digest of a byte buffer in base64 encoding .
def _byte_buffer_md5(buffer_, b64encode=True):
    """
    Computes the md5 digest of a byte buffer in base64 encoding.
    """
    md5 = hashlib.md5(buffer_)
    byte_digest = md5.digest()
    if b64encode:
        return base64.b64encode(byte_digest).decode()
    else:
        return byte_digest
def _byte_buffer_md5 ( buffer_ , b64encode = True ) : md5 = hashlib . md5 ( buffer_ ) byte_digest = md5 . digest ( ) if b64encode : return base64 . b64encode ( byte_digest ) . decode ( ) else : return byte_digest