(byte[] inputBytes, byte[] key)
| 62 | |
| 63 | |
| 64 | private static byte[] decode(byte[] inputBytes, byte[] key) throws Exception { |
| 65 | Cipher cipher = Cipher.getInstance(transformation); |
| 66 | SecretKeySpec secretKeySpec = new SecretKeySpec(key, name); |
| 67 | IvParameterSpec ivParameterSpec = new IvParameterSpec(Default_iv.getBytes(StandardCharsets.UTF_8)); |
| 68 | cipher.init(Cipher.DECRYPT_MODE, secretKeySpec, ivParameterSpec); |
| 69 | return cipher.doFinal(inputBytes); |
| 70 | } |
| 71 | |
| 72 | public static void main(String[] args) throws Exception { |
| 73 | // Security.addProvider(new BouncyCastleProvider()); |
no outgoing calls