Skip to content

Instantly share code, notes, and snippets.

@lars-devs
lars-devs / c6_test.py
Last active November 2, 2023 21:40 — forked from rosmo/c6_test.py
TP-Link X90 Deco API example
from requests.api import request
from Crypto.Cipher import PKCS1_OAEP, PKCS1_v1_5
from Crypto.Cipher import AES
from Crypto.PublicKey import RSA
from Crypto.Util.Padding import pad
from Crypto.Util.number import bytes_to_long
import base64
import requests
import string
import random