信息网络安全 ›› 2016, Vol. 16 ›› Issue (11): 73-78.doi: 10.3969/j.issn.1671-1122.2016.11.012

• • 上一篇    下一篇

基于用户体验的模糊密码算法研究

李震(), 何泾沙   

  1. 北京工业大学软件学院,北京100124
  • 收稿日期:2016-08-01 出版日期:2016-11-20 发布日期:2020-05-13
  • 作者简介:

    作者简介:李震(1992—),男,山东,硕士研究生,主要研究方向为密码学 ;何泾沙(1961—),男,陕西,教授,博士,主要研究方向为网络安全、测试与分析和云计算。

  • 基金资助:
    国家自然科学基金[61272500];国家高技术研究发展计划(国家863计划)[2015AA017204];北京市自然科学基金[4142008]

Research on Fuzzy Cipher Algorithm Based on User Experience

Zhen LI(), Jingsha HE   

  1. School of Software Engineering, Beijing University of Technology, Beijing 100124,China
  • Received:2016-08-01 Online:2016-11-20 Published:2020-05-13

摘要:

由于网站数量的不断增多,随着时间的推移,用户对注册时编写的密码记忆变得模糊不清。而通常情况下一旦密码三次输入错误网站即阻止用户一切操作,没有考虑到用户长久未登录对于密码记忆的减弱情况。只有改变密码的认证方式才能给用户更好的登录体验。编辑距离(Levenshtein Distance,LD)算法通常被用于字符串的快速匹配、写作等领域,这种经典的算法提供了字符串之间距离定义的理论依据。文章选择登录密码为研究对象,通过分析用户定义习惯,结合编辑距离对于字符串的定义产生新的模糊密码算法。首先把用户输入的字符串进行组合分析;然后根据不同的距离产生不同的模糊密码字符集,最后将生成的模糊字符集经过Hash加密后存入数据库中。文章通过在Windows系统下利用C#语言对算法进行编程后试验,证明该算法可产生相应的模糊字符集,实现并达到预期的目标,对用户登录体验有较好的改进,也为登录方式的改进提供新的思路。

关键词: 编辑距离, Hash, 模糊密码, 字符集

Abstract:

With the increasing of the number of sites, due to the time problem for users registered write password blurred, and often once input error preventing all operations, without considering the long-term users logged for password memory decrease, only to change the password authentication method to experience to visit the user better. Edit distance (Levenshtein Distance, LD) algorithm is usually used in the string of fast matching, writing, this classic algorithm provides string distance is defined on the basis of the theory, through the analysis of the influence of time factor to be deformed and get new strings generated method. The article chooses the login password as the research object, and then analyzes the definition of the character of the string by analyzing the user defined custom and generates a new fuzzy cipher algorithm. First, the user input string combined analysis, and then according to the different distance to produce a different fuzzy character set, and finally the generated fuzzy character set after Hash encryption into the database. The under Windows system using language C# written test of the algorithm, prove that the algorithm can produce the corresponding fuzzy character set, and achieve the expected goals, and the logged in user experience is better, for landing improved way to provide new ideas.

Key words: edit distance, Hash, fuzzy cipher, character set

中图分类号: