MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / actionPerformed

Method actionPerformed

src/burp/IndexautoDecoder.java:156–178  ·  view source on GitHub ↗
(ActionEvent e)

Source from the content-addressed store, hash-verified

154 public IndexautoDecoder() {
155 button1.addActionListener(new ActionListener() { // 解密按钮事件
156 @Override
157 public void actionPerformed(ActionEvent e) {
158
159 String encodemode = (String) mChoiceBox1.getSelectedItem(); // AES / DES / DESede
160 String ivmode = (String) mChoiceBox2.getSelectedItem(); // iv模式 ECB / CBC
161 String paddingmode = (String) mChoiceBox3.getSelectedItem(); // 填充模式
162 String sSrcmode = (String) mChoiceBox4.getSelectedItem(); // 密文编码
163 String keyivmode = (String) mChoiceBox5.getSelectedItem(); // key iv编码
164
165 String skey = keytextField.getText().trim(); // key 密钥
166 String iv = ivtextField.getText().trim(); // iv
167 String sSrc = EncodedtextArea.getText(); // 密文
168
169
170 try {
171 String dDes = decryptKeyivmode(sSrc, skey, iv, encodemode, ivmode, paddingmode, sSrcmode, keyivmode);
172 DecodetextArea.setText(dDes);
173 } catch (Exception ex) {
174 ex.printStackTrace();
175 }
176
177
178 }
179 });
180
181 Button2.addActionListener(new ActionListener() { // 加密按钮事件

Callers

nothing calls this directly

Calls 9

SaveMethod · 0.95
TestDecodeMethod · 0.95
TestEncodeMethod · 0.95
getTextMethod · 0.80
decryptKeyivmodeMethod · 0.80
setTextMethod · 0.80
encryptKeyivmodeMethod · 0.80
MatchRegMethod · 0.80
FileGetValueMethod · 0.80

Tested by

no test coverage detected