class freshchat.webhook.security.SecurityManager(public_key: str)

Class responsible for the verification of the incoming signature using the public key provided from Freshchat


Property returns RSA instance from the public key

verify_signature(signature: str, data: str) → bool

Method which verifies if the data are signed correctly :param signature: sha256withrsa signature :param data: signed data :return: the result of the verification