def digestbb(message, algo=sha):
    """Compute the digest of a message in Bubble Babble format."""
    mdigest = algo.new()
    mdigest.update(message)
    return bubble_babble(mdigest.digest())
Compute the digest of a message in Bubble Babble format.
recipes/Python/413035_Encode_messages_message_digests_Bubble_Babble/recipe-413035.py