📄 aes.java
字号:
/**
* AES.java
*
* @author : 林足雄 LinZuxiong
* @date : 2009-3-22
*/
public class AES {
private String plaintext = "";// 明文
private String ciphertext = "";// 密文
private String key = null;
public AES() {
}
public AES(String plaintext, String ciphertext, String key) {
this.plaintext = plaintext;
this.ciphertext = ciphertext;
this.key = key;
}
// 加密
public String encrypt(String plaintext, String key) {
this.plaintext = plaintext;
this.key = key;
return "";
}
public String encrypt(String key) {
this.ciphertext = encrypt(plaintext, key);
return this.ciphertext;
}
public String getPlaintext() {
return plaintext;
}
public void setPlaintext(String plaintext) {
this.plaintext = plaintext;
}
public String getCiphertext() {
return ciphertext;
}
public void setCiphertext(String ciphertext) {
this.ciphertext = ciphertext;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -