⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rsapublickey.java

📁 对称和非对称加密
💻 JAVA
字号:
package com.dmgc.security.cipher.unsymmetic.rsa;import java.io.Serializable;/** * <p>Title: DMGC SECURITY CIPHER LIB</p> * <p>Description: 上海信宁科技有限公司 安全密码库(JAVA version)</p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: 上海信宁科技有限公司</p> * <p>RSA 公钥的数据结构形式 * <P> (e,n) * <P> e 为RSA 加密指数 * <P> n 为RSA 模 * @author 陆荣幸  周渊   潘勇 * @version 1.0 * @since 1.0 */public class RSAPublicKey implements Serializable {  /**   * RSA算法的模数,是由两个大素数构成 n=pq   */  private com.dmgc.security.cipher.util.DmgcMpInteger modulus;  /**   * RSA加密指数,作为公钥e公开,它与私钥d满足关系 ed=1 (mod phi(n))   */  private com.dmgc.security.cipher.util.DmgcMpInteger publicExponent;  /**   * 构造函数   */  public RSAPublicKey() {  }  /**   * 测试用   * @param args   */  public static void main(String[] args) {    RSAPublicKey RSAPublicKey1 = new RSAPublicKey();  }  /**   * 取得大整数模   * @return n          n=pq   */  public com.dmgc.security.cipher.util.DmgcMpInteger getModulus() {    return modulus;  }  /**   * 设置大整数模   * @param modulus   */  public void setModulus(com.dmgc.security.cipher.util.DmgcMpInteger modulus) {    this.modulus = modulus;  }  /**   * 取得加密指数e   * @return e   */  public com.dmgc.security.cipher.util.DmgcMpInteger getPublicExponent() {    return publicExponent;  }  /**   * 设置加密指数e   * @param publicExponent   */  public void setPublicExponent(com.dmgc.security.cipher.util.DmgcMpInteger publicExponent) {    this.publicExponent = publicExponent;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -