import base64
import hashlib


def sha256_encode(message):

    """

    Encode a message with SHA256 as base64

    """

    return base64.b64encode(hashlib.sha256(message.encode()).digest()).decode()