• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

学而精

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2012年7月18日

Cookie窃取及会话劫持

摘要: 1.Network eavesdropping网络监听Where network traffic is not encrypted, attackers can therefore read the communications of other users on the network, including HTTP cookies as well as the entire contents of the conversations.在网络上传输的数据都是会被监听获取的,尤其是在公共的、非加密的网络环境(free wifi)。这些数据也包括常规的http(非https加密通道)所有sess 阅读全文

posted @ 2012-07-18 10:19 Songhan 阅读(1688) 评论(0) 推荐(0)

Django API: 用testypie实现API Key Authentication 和 Piston实现HTTP Authentication

摘要: Testypie实现API Key Authentication1. 建立一个handler的类,继承ModelResource class apikey_handler(ModelResource)2. 建立class Meta3. queryset是返回数据库数据,也就是最终页面返回的值 queryset = Ticket【models里的类,主model】.objects.all()4. 设置url的路径名称 resource_name = 'user' 和urls.py的设置放一起说,在urls.py中: from tastypie.api import Api v.. 阅读全文

posted @ 2012-07-18 02:53 Songhan 阅读(854) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3