def METHOD_NAME(password: str, key: str) -> str:
    """
    Encrypt a password for OSPF simple authentication
    <key> should be the interface name e.g. "Ethernet1"
    The key is transformed to : <key>_passwd for simple authentication
    Returns the encrypted password as a string
    """
    _validate_password_and_key(password, key)
    data = bytes(password, encoding="UTF-8")
    key_b = bytes(f"{key}_passwd", encoding="UTF-8")
    return cbc_encrypt(key_b, data).decode()