?? encipher.java
字號:
/**
*
*/
package RSA;
import RSA.Cipher;
import java.math.BigInteger;
/**
* @author Administrator
*
*/
public class Encipher extends Cipher{
public void init(BigInteger primep, BigInteger primeq, BigInteger publickey)
{
this.PublicKey = publickey;
this.PrimeP = primep;
this.PrimeQ = primeq;
SetThetaN();
SetPrimeN();
}
public BigInteger ComputeEncipherValue(BigInteger plaintMessage)
{
BigInteger plaintmessage = plaintMessage;
return plaintmessage.modPow(this.PublicKey, this.PrimeN);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -