from Crypto.PublicKey import RSA
import binascii
import base64
aaa='906C793510FB049452764740B21B97A51DAEA794AB6E43836269D5E6317D49226C12362BA22DAB5EC3BC79553A8A098B01F3C4D81A87B3EE5BD2F4F1431CC495EE2FE54688B212145BB32D56EEEEE1430CE26234331B291CFC53C9B84FAFFDF0B44371A032880C3D567F588D2CD5FCE28D9CDD2923CB547DAD219A6A1B8B5D3D'
exponent = '010001'
text = '123456'[::-1]
key = RSA.construct((int(aaa, 16), int(exponent, 16)))
aaa = key.encrypt((text).encode(), None)
print(binascii.hexlify(aaa[0]).decode('utf-8'))