import base64


def encrypt_password(password):
    """
    Encrypt password with base64
    """
    password_bytes = str.encode(password.strip(), encoding='utf-8')
    return base64.b64encode(password_bytes).decode()