AbstractRC4 is a key flow generation algorithm designed by RSA company.In this paper,Java programs are used to implement RC4 algorithm andlinear congruence algorithm respectively,and the encryption anddecryption program design of flow password corresponding to RC4 iscompleted.This paper also compares RC4 with the linear congruencemethod under specific circumstances,and analyzes and compares theexperimental data of the running program.In the experimental process,itis found that the random sequences generated by RC4 have their ownadvantages and disadvantages compared with the random sequencesgenerated by the linear congruence method,and the random sequencesgenerated by the linear congruence method have better equilibrium on thewhole.In terms of running distance,RC4 is better than the linearcongruence method when the cycle is between 256 bytes,and better thanthe linear congruence method when the cycle is greater than 256 bytes.Key words:RC4;Stream cipher;Random sequence;Linear congruencemethod
暂无评论内容