Git Product home page Git Product logo

keepagent's Introduction

KeepAgent

GoAgent's code is dirty and messy, so let's KeepAgent.

KeepAgent只专注GAE平台以及HTTP代理,希望以简洁而不失效率的代码,让初学HTTP协议或是对于Python有兴趣的同学可以从中借鉴和学习。

[注意]以下内容几乎都是为KeepAgent Python版本而写

简易使用方法

  1. 把server文件夹里的app.yaml里的application字段改为你的appid,并部署至GAE。
  2. 在浏览器中导入client目录下的CA.crt,再将config.py中的appid改为你的appid。
  3. 运行keepagent.py,将浏览器的代理端口设置为7808,即可。

安全性

由于https连接比较消耗资源影响速度,而使用KeepAgent的朋友大部分都是直接在与自己搭建server端打交道的,所以KeepAgent内置了AES对称加密的机制,使机密内容得到加密但速度不受太大影响。KeepAgent只会自动加密https请求,对于http请求不进行加密。

设置方法:

  1. 下载并编译安装pycrypto 2.6
  2. 打开client/lib.py,为crypt_key赋值一个32字节的字符串。(可以通过运行client/cipher.py来获得一个随机32字节的字符串)
  3. 重新上传server文件夹至GAE。即可。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.