项目作者: uirlxz

项目描述 :
Test the square multiplication algorithm efficiency
高级语言: Java
项目地址: git://github.com/uirlxz/security.git
创建时间: 2017-04-20T05:30:10Z
项目社区:https://github.com/uirlxz/security

开源协议:

下载


Square multiplication

Hey guys,this project is about the square multiplication algorithm using in RSA.

There are two algorithm to calculate m^n.The ordinary one is calculate mmm…..*m and I name this algorithm “ordinary.java”, the other one is the square multiplication algorithm which I named “algorithm.java”.

It just calculate the power to test and verify the effiency of the algorithm without testing something like “12345^67890 mod 31”.

In this programme you can type any integer m and n to caculate m^n(like 2^100000000,may need 5min), because I use BigInteger to define them.

At last you will get the using time to compare with the ordinary method to calculate m^n.

I’m a green hand in programming and It’s the first github project I upload.So……..Let’s study together………