goagent/goagent — pull request #176 by wwqgtxx (2013-11-17 07:35:38+00:00)
Title:  add random RC4 key send by RSA

用随机数来作为RC4的KEY，用RSA加密传输，这样可以保证绝对安全了

这个功能默认关闭
需要在文件中自行声明
__RSA_KEY__ = '''
-----BEGIN RSA PRIVATE KEY-----
.....................................
-----END RSA PRIVATE KEY-----
'''

顺便付了一个工具，生成RSA秘钥
E:\secure-goagent2\local>python27
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Inte
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import proxy
>>> proxy.generate_RSA()
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA1MiKkbEwWgNT55Hq/gbqBjWVLA7KkkbibMhLS+QSKUMovFb1
3kOdSDLZF59P6xPOb11kILQbYnY/XReVoxMZjTuU6yqrciYHsutTzP/CExkXN6cY
CHwEbzMCySOc/f3MgMjRh6lCEIWQlhM19zK1vcMM2cSmZa3Tb1sU5zR96NrFjDGy
P2dBqjxCBGyH6d3aqD18nNLgP/MLNByNuRMGqzlj8/L9HZq9gBM4EUTGJKqPQrbJ
3aDuyFFGnCJLTCQAdm5cP3YQUzsmImQzOYQ35ReveJefTy3/N49fsLKgb8T8xbL4
UWVoCpv6itMf8oUQy9JrP2yYyJFhZePse4NGxQIDAQABAoIBADMSV0AU2VghiFgC
i/agzjbjUYSboD9vyBT4FiqG+VzyA6sA7E6GyA92NOkYkeQIgvnz3n6C/DerzhWX
/ZCAmxds/5daTIA/ZIWrOhfwIzLWSN5QutH+gkn2YmrIo3vLGPSoPrJjC7pPdJ6w
ybklcL21PTZfnti02hTWNbQwwy/KMjgawjXU5YorG0PrEYskRIzS5NDh9rygCJHI
TZRFdAns+GoXfzPDTxubdu/KJWvFIaLqjVvDqy8lwyAuexIxaJlcwnVXyTvbTfcO
S3RUu7yVvMBPfZZnDQ6m3mAaFX+4C4CyvoL8EZdMIe4sXAX/9v6+AuuvDsy5rMEQ
MK0PWJkCgYEA1XmV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