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

📄 main.java

📁 提供JAVA源码
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package rsalab;/** * * @author Fredrik */public class Main {    /**     * @param args the command line arguments     */     public static void main(String[] args) {               RSA myRSA=new RSA(256);       byte[] plaintext={10,20,30};       for(int i=0;i<plaintext.length;i++)           System.out.printf("%02x ", plaintext[i]);       System.out.println();       byte[] ciphertext=myRSA.encrypt(plaintext);       for(int i=0;i<ciphertext.length;i++)           System.out.printf("%02x ", ciphertext[i]);       System.out.println();       byte[] decrypted=myRSA.decrypt(ciphertext);       for(int i=0;i<decrypted.length;i++)           System.out.printf("%02x ", decrypted[i]);       System.out.println();    }}

⌨️ 快捷键说明

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