没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
I
目 录
目 录.....................................................................................................................I
摘要 ........................................................................................................................3
Abstract ..................................................................................................................4
第 1 章 绪论 ..........................................................................................................5
1.1 研究背景 .................................................................................................5
1.2 研究现状 .................................................................................................5
1.3 研究内容 ..................................................................................................6
第 2 章 相关技术 ..................................................................................................7
2.1 Python 语言 ...........................................................................................7
2.2 django 框架 ...........................................................................................7
2.3 常见验证码安全认证 ............................................................................7
2.4 信息安全相关理论 ..................................................................................8
第 3 章 系统分析 ..................................................................................................9
3.1 系统可行性分析 .....................................................................................9
3.1.1 技术可行性 ..................................................................................9
3.1.2 经济的可行性 ...............................................................................9
3.1.3 操作可行性 .................................................................................10
3.2 系统功能需求分析 ...............................................................................10
第 4 章 系统设计 ................................................................................................12
4.1 验证码的形式 .......................................................................................12
4.2 验证码的安全性设置 ...........................................................................12
第 5 章 系统实现 ..............................................................................................13
5.1 文字验证码登录界面 ...........................................................................13
5. 2 输入错误的验证码界面 .......................................................................13
5.3 图像验证码登录界面 ............................................................................14
5.4 图像验证码拖动错误界面 ....................................................................14
5.5 后台管理系统界面 ................................................................................15
5.6 校验列表界面 ........................................................................................16
第 6 章 系统测试 ................................................................................................17
6.1 测试的目的 ............................................................................................17
6.2 测试的内容 ............................................................................................17
6.3 测试的结果 ............................................................................................17
第 7 章 结论 ......................................................................................................19
3
摘要
近年来随着互联网应用技术的飞速发展,为了确保网站系统平台的安全性,
各类网站相继推出了验证码应用技术,通过验证码的应用来帮助缓解暴力破解账
户密码、垃圾邮件攻击以及在线虚假投票等安全问题,传统的验证码采用的模式
主要通过复杂扭曲的字母数字识别来实现,然而这种验证码的方式往往会引起用
户端的反感导致网站平台的流量下降,为了提升用户端的体验感同时又要确保系
统平台的安全性,行为式的验证码应运而生。行为式的验证码通常采用图片识别
或者滑块游戏的方式来实现,这种验证方式不需要用户端的数据录入只需要鼠标
的点击就可以实现,目前行为式的验证码更能够被用户所接受。
此次针对登录网站验证码的生成和识别主要利用了 Python 技术来实现,开
发设计了两种验证码模式:图形验证码以及滑动验证码,图形验证码主要通过动
态的图形内容来验证,滑动验证码通过滑动交互的方式来实现拼图缺口的填入,
在登录验证的过程中需要确保验证信息的准确性,一旦发生验证错误后台会自动
刷新函数来确保验证码的随机性,同时如同一 IP 验证失败超过最大次数平台会
自动锁定冻结账号信息,验证码可以帮助提升系统平台登录的安全性,防止暴力
破解账户信息的情况发生。
关键词:Python 语言;Django 框架; 图形验证码;滑动验证码
4
Abstract
In recent years, with the rapid development of Internet application technology, in
order to ensure the security of the website system platform, various websites have
introduced verification code application technology to help alleviate security
problems such as brute force account password cracking, spam attacks and online
false voting. The traditional verification code is mainly realized through complex and
distorted alphanumeric identification, However, this way of verification code often
causes users' aversion, which leads to the decline of website platform traffic. In order
to enhance the user's sense of experience and ensure the security of the system
platform, behavioral verification code came into being. Behavioral verification codes
are usually implemented by means of picture recognition or slider games. This
verification method does not require data entry at the user end, but only requires a
mouse click. At present, behavioral verification codes are more acceptable to users.
This time, Python technology is mainly used to generate and identify the
verification code of the login website. Two verification code modes are developed
and designed: graphic verification code and sliding verification code. The graphic
verification code is mainly verified by dynamic graphic content, and the sliding
verification code is used to fill in the puzzle gap through sliding interaction. During
the login verification process, the accuracy of the verification information needs to be
ensured, In the event of a verification error, the background will automatically refresh
the function to ensure the randomness of the verification code. At the same time, the
platform will automatically lock the frozen account information if the number of IP
verification failures exceeds the maximum number. The verification code can help
improve the security of the system platform login and prevent the violent cracking of
account information.
Keywords: Python language; Django framework; Graphic verification code;
Sliding verification cod
5
第 1 章 绪论
1.1 研究背景
随着网络应用技术的高速发展,许多系统平台需要用户注册登录进入后即可
享受免费的在线服务,系统提供便捷的同时也为很多不法分子创造了条件,以经
济为目的进行大量的账号注册已经滥用网络服务内容,同时通过注册账号向平台
用户发送大量的垃圾信息。为了避免以上安全漏洞事件的发生,同时也为平台创
造良好的网络环境,验证码技术成为了登录系统平台的安全卫士,通过借助验证
码识别技术来判断和区分人类和计算机的差异,从而阻止网络平台自动滥用服务
内容的事件发生,借助验证码可以帮助阻挡恶意的机器攻击,进一步维护和确保
网络环境的安全性。
最初的验证码设定需要通过键盘录入对应的字母或数字才可以实现验证,然
而信息的录入会应为键盘操作失误浪费大量的时间,同时为了增加验证码的识别
难度,很多图片内的数字或字母的显示方式采用了扭曲变形或者干扰线的方式来
增加难度,录入和识别都降低了用户的体验感,同时为了确保验证码的多样性,
需要采集大量的图片样本,图像数据及图像内容占用了大量的空间。因此考虑到
验证码的便捷性以及验证信息内容的趣味性,大量的系统平台开始优化现有的验
证码形式,目前常见的验证码形式包括了随机生成 4 个字符或者数字、图片内容
识别以及滑动图片拼图等,验证码的录入方式也逐渐从键盘的录入转变为鼠标点
击或者滑动,验证码类型的更新即增加了验证信息录入的趣味性也能有效的阻止
机器人攻击,在提高验证信息准确率的同时也有效提升了登录的安全性。
1.2 研究现状
21 世纪初期图片验证码成为了当时应用最广泛的验证码,以传统的文本验
证形式为主,通过图像处理工具来增加背景和纹理结合不同的字体形式生成对应
的测试图片,验证码初期主要以字母的识别及录入为主。为了增加验证码的识别
难度,字母的识别加入了手写体内容,然而初期的验证码识别主要加强了识别难
度但是忽略了用户的体验感,识别难度的增加以及需要手动录入都降低了用户的
好感度。随着验证码技术的日益成熟,传统的手动录入的方式逐步被鼠标点击所
替代,主要借助图像的识别来判断,利用了人类视觉模式下的识别优势来判断相
剩余21页未读,继续阅读
资源评论
苹果牛顿吃
- 粉丝: 19
- 资源: 2791
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功