RC4 程序设计和数据分析比较RC4 Programming and Data Analysis Comparison 摘要RC4 是 RSA 公司设计的密钥流生成算法,本文采用 Java 程序分别实现了 RC4 算法和线性同余算法,并完成了流密码对应 RC4 相应的加密解密程序设计。本文还对 RC4 与在特定情况下的线性同余法进行对比,对运行程序的实验数据进行分析比较,在实验过程中发现 RC4 本身产生的随机序列与线性同余法的随机序列各有优劣,线性同余法的随机序列整体上均衡性好一些;游程方面,周期在 256字节之间 RC4 比线性同余法更好,大于 256 字节后则线性同余法更好。关键词:RC4;流密码;随机序列;线性同余法AbstractRC4 is a key flow generation algorithm designed by RSA company. In this paper, Java programs are used to implement RC4 algorithm and linear congruence algorithm respectively, and the encryption and decryption program design of flow password corresponding to RC4 is completed.This paper also compares RC4 with the linear congruence method under specific circumstances, and analyzes and compares the experimental data of the running program. In the experimental process, it is found that the random sequences generated by RC4 have their own advantages and disadvantages compared with the random sequences generated by the linear congruence method, and the random sequences generated by the linear congruence method have better equilibrium on the whole.In terms of running distance, RC4 is better than the linear congruence method when the cycle is between 256 bytes, and better than the linear congruence method when the cycle is greater than 256 bytes.Key words:RC4; Stream cipher; Random sequence; Linear congruence method目录第一章 绪论...............................................11.1 课题背景和意义............................................................................11.2 研究内容.......................................................................................