def sha1_base64_digest(value): """ Calculates Base-64-encoded SHA-1 digest of a variable number of inputs. :param inputs: A variable number of inputs for which the digest will be calculated. :returns: Base-64-encoded SHA-1 digest. """ return bytes_to_base64(sha1_digest(value))
def hmac_sha1_base64_digest(key, data): """ Calculates a base64-encoded HMAC SHA-1 signature. :param key: The key for the signature. :param data: The data to be signed. :returns: Base64-encoded HMAC SHA-1 signature. """ return bytes_to_base64(hmac_sha1_digest(key, data))