Info Call to Crypto API

Description

List of all calls to cryptographic methods.

Recommendation

Do not use insecure or weak cryptographic algorithms. For example, the Data Encryption Standard (DES) encryption algorithm is considered highly insecure

Do not use Object.equals() to compare cryptographic keys

Cryptographic keys should never be serialized

Technical details

Method com.mobatia.dev.encryptpro.EncrptClass.decrypt() calling method javax.crypto.Cipher.doFinal()


    private static byte[] decrypt(byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.EncrptClass.keyValue, "AES");
        javax.crypto.Cipher v1_2 = javax.crypto.Cipher.getInstance("AES");
        v1_2.init(2, v0_1);
        return v1_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.EncrptClass.encrypt() calling method javax.crypto.Cipher.doFinal()


    private static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.encrypt() calling method javax.crypto.Cipher.doFinal()


    public static String encrypt(String p4)
    {
        int v0_2 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        javax.crypto.Cipher v1_3 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_3.init(1, v0_2, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return android.util.Base64.encodeToString(v1_3.doFinal(p4.getBytes()), 0);
    }

Method com.mobatia.dev.encryptpro.EncrptClass.encrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    private static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.EncrptClass.getRawKey() calling method javax.crypto.spec.SecretKeySpec.<init>()


    private static byte[] getRawKey()
    {
        return new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.EncrptClass.keyValue, "AES").getEncoded();
    }

Method com.mobatia.dev.encryptpro.SimpleCrypto.decrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    private static byte[] decrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(2, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.Encryptor.decrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static String decrypt(String p2, String p3, String p4)
    {
        try {
            javax.crypto.spec.IvParameterSpec v0_1 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            String v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(2, v3_1, v0_1);
            return new String(v2_2.doFinal(java.util.Base64.getDecoder().decode(p4)));
        } catch (int v2_4) {
            v2_4.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.SimpleCrypto.encrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    private static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.decrypt() calling method javax.crypto.Cipher.doFinal()


    public static String decrypt(String p4)
    {
        byte[] v4_1 = android.util.Base64.decode(p4, 0);
        String v0_4 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        String v1_1 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_1.init(2, v0_4, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return new String(v1_1.doFinal(v4_1), "UTF-8");
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.decrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static String decrypt(String p4)
    {
        byte[] v4_1 = android.util.Base64.decode(p4, 0);
        String v0_4 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        String v1_1 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_1.init(2, v0_4, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return new String(v1_1.doFinal(v4_1), "UTF-8");
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.encrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static String encrypt(String p4)
    {
        int v0_2 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        javax.crypto.Cipher v1_3 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_3.init(1, v0_2, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return android.util.Base64.encodeToString(v1_3.doFinal(p4.getBytes()), 0);
    }

Method com.mobatia.dev.encryptpro.EncrptClass.decrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    private static byte[] decrypt(byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.EncrptClass.keyValue, "AES");
        javax.crypto.Cipher v1_2 = javax.crypto.Cipher.getInstance("AES");
        v1_2.init(2, v0_1);
        return v1_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.Encryptor.encrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static String encrypt(String p2, String p3, String p4)
    {
        try {
            String v0_4 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            java.util.Base64$Encoder v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(1, v3_1, v0_4);
            int v2_3 = v2_2.doFinal(p4.getBytes());
            String v4_2 = new StringBuilder();
            v4_2.append("encrypted string: ");
            v4_2.append(java.util.Base64.getEncoder().encodeToString(v2_3));
            System.out.println(v4_2.toString());
            return java.util.Base64.getEncoder().encodeToString(v2_3);
        } catch (int v2_5) {
            v2_5.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.MCrypt.<init>() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public MCrypt()
    {
        this.iv = "fedcba9876543210";
        this.SecretKey = "0123456789abcdef";
        this.ivspec = new javax.crypto.spec.IvParameterSpec(this.iv.getBytes());
        this.keyspec = new javax.crypto.spec.SecretKeySpec(this.SecretKey.getBytes(), "AES");
        try {
            this.cipher = javax.crypto.Cipher.getInstance("AES/CBC/NoPadding");
        } catch (javax.crypto.NoSuchPaddingException v0_6) {
            v0_6.printStackTrace();
        } catch (javax.crypto.NoSuchPaddingException v0_5) {
            v0_5.printStackTrace();
        }
        return;
    }

Method com.mobatia.dev.encryptpro.NewEncrypt.decrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static byte[] decrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(2, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.NewEncrypt.encrypt() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.Encryptor.decrypt() calling method javax.crypto.Cipher.doFinal()


    public static String decrypt(String p2, String p3, String p4)
    {
        try {
            javax.crypto.spec.IvParameterSpec v0_1 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            String v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(2, v3_1, v0_1);
            return new String(v2_2.doFinal(java.util.Base64.getDecoder().decode(p4)));
        } catch (int v2_4) {
            v2_4.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.Encryptor.encrypt() calling method javax.crypto.Cipher.doFinal()


    public static String encrypt(String p2, String p3, String p4)
    {
        try {
            String v0_4 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            java.util.Base64$Encoder v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(1, v3_1, v0_4);
            int v2_3 = v2_2.doFinal(p4.getBytes());
            String v4_2 = new StringBuilder();
            v4_2.append("encrypted string: ");
            v4_2.append(java.util.Base64.getEncoder().encodeToString(v2_3));
            System.out.println(v4_2.toString());
            return java.util.Base64.getEncoder().encodeToString(v2_3);
        } catch (int v2_5) {
            v2_5.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.MCrypt.decrypt() calling method javax.crypto.Cipher.doFinal()


    public byte[] decrypt(String p5)
    {
        if ((p5 == null) || (p5.length() == 0)) {
            throw new Exception("Empty string");
        } else {
            try {
                this.cipher.init(2, this.keyspec, this.ivspec);
                return this.cipher.doFinal(com.mobatia.dev.encryptpro.MCrypt.hexToBytes(p5));
            } catch (String v5_3) {
                StringBuilder v1_1 = new StringBuilder();
                v1_1.append("[decrypt] ");
                v1_1.append(v5_3.getMessage());
                throw new Exception(v1_1.toString());
            }
        }
    }

Method com.mobatia.dev.encryptpro.MCrypt.encrypt() calling method javax.crypto.Cipher.doFinal()


    public byte[] encrypt(String p5)
    {
        if ((p5 == null) || (p5.length() == 0)) {
            throw new Exception("Empty string");
        } else {
            try {
                this.cipher.init(1, this.keyspec, this.ivspec);
                return this.cipher.doFinal(com.mobatia.dev.encryptpro.MCrypt.padString(p5).getBytes());
            } catch (String v5_4) {
                StringBuilder v1_1 = new StringBuilder();
                v1_1.append("[encrypt] ");
                v1_1.append(v5_4.getMessage());
                throw new Exception(v1_1.toString());
            }
        }
    }

Method com.mobatia.dev.encryptpro.NewEncrypt.decrypt() calling method javax.crypto.Cipher.doFinal()


    public static byte[] decrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(2, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.NewEncrypt.encrypt() calling method javax.crypto.Cipher.doFinal()


    public static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.SimpleCrypto.decrypt() calling method javax.crypto.Cipher.doFinal()


    private static byte[] decrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(2, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.SimpleCrypto.encrypt() calling method javax.crypto.Cipher.doFinal()


    private static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.decrypt() calling method javax.crypto.Cipher.getInstance()


    public static String decrypt(String p4)
    {
        byte[] v4_1 = android.util.Base64.decode(p4, 0);
        String v0_4 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        String v1_1 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_1.init(2, v0_4, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return new String(v1_1.doFinal(v4_1), "UTF-8");
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.encrypt() calling method javax.crypto.Cipher.getInstance()


    public static String encrypt(String p4)
    {
        int v0_2 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        javax.crypto.Cipher v1_3 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_3.init(1, v0_2, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return android.util.Base64.encodeToString(v1_3.doFinal(p4.getBytes()), 0);
    }

Method com.mobatia.dev.encryptpro.EncrptClass.decrypt() calling method javax.crypto.Cipher.getInstance()


    private static byte[] decrypt(byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.EncrptClass.keyValue, "AES");
        javax.crypto.Cipher v1_2 = javax.crypto.Cipher.getInstance("AES");
        v1_2.init(2, v0_1);
        return v1_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.EncrptClass.encrypt() calling method javax.crypto.Cipher.getInstance()


    private static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.Encryptor.decrypt() calling method javax.crypto.Cipher.getInstance()


    public static String decrypt(String p2, String p3, String p4)
    {
        try {
            javax.crypto.spec.IvParameterSpec v0_1 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            String v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(2, v3_1, v0_1);
            return new String(v2_2.doFinal(java.util.Base64.getDecoder().decode(p4)));
        } catch (int v2_4) {
            v2_4.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.Encryptor.encrypt() calling method javax.crypto.Cipher.getInstance()


    public static String encrypt(String p2, String p3, String p4)
    {
        try {
            String v0_4 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            java.util.Base64$Encoder v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(1, v3_1, v0_4);
            int v2_3 = v2_2.doFinal(p4.getBytes());
            String v4_2 = new StringBuilder();
            v4_2.append("encrypted string: ");
            v4_2.append(java.util.Base64.getEncoder().encodeToString(v2_3));
            System.out.println(v4_2.toString());
            return java.util.Base64.getEncoder().encodeToString(v2_3);
        } catch (int v2_5) {
            v2_5.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.MCrypt.<init>() calling method javax.crypto.Cipher.getInstance()


    public MCrypt()
    {
        this.iv = "fedcba9876543210";
        this.SecretKey = "0123456789abcdef";
        this.ivspec = new javax.crypto.spec.IvParameterSpec(this.iv.getBytes());
        this.keyspec = new javax.crypto.spec.SecretKeySpec(this.SecretKey.getBytes(), "AES");
        try {
            this.cipher = javax.crypto.Cipher.getInstance("AES/CBC/NoPadding");
        } catch (javax.crypto.NoSuchPaddingException v0_6) {
            v0_6.printStackTrace();
        } catch (javax.crypto.NoSuchPaddingException v0_5) {
            v0_5.printStackTrace();
        }
        return;
    }

Method com.mobatia.dev.encryptpro.NewEncrypt.decrypt() calling method javax.crypto.Cipher.getInstance()


    public static byte[] decrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(2, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.NewEncrypt.encrypt() calling method javax.crypto.Cipher.getInstance()


    public static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.SimpleCrypto.decrypt() calling method javax.crypto.Cipher.getInstance()


    private static byte[] decrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(2, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.SimpleCrypto.encrypt() calling method javax.crypto.Cipher.getInstance()


    private static byte[] encrypt(byte[] p2, byte[] p3)
    {
        javax.crypto.spec.SecretKeySpec v0_1 = new javax.crypto.spec.SecretKeySpec(p2, "AES");
        byte[] v2_2 = javax.crypto.Cipher.getInstance("AES");
        v2_2.init(1, v0_1);
        return v2_2.doFinal(p3);
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.decrypt() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public static String decrypt(String p4)
    {
        byte[] v4_1 = android.util.Base64.decode(p4, 0);
        String v0_4 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        String v1_1 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_1.init(2, v0_4, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return new String(v1_1.doFinal(v4_1), "UTF-8");
    }

Method com.mobatia.dev.encryptpro.AES256Cipher.encrypt() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public static String encrypt(String p4)
    {
        int v0_2 = new javax.crypto.spec.SecretKeySpec(com.mobatia.dev.encryptpro.AES256Cipher.getRaw("sampleText", "exampleSalt"), "AES");
        javax.crypto.Cipher v1_3 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
        v1_3.init(1, v0_2, new javax.crypto.spec.IvParameterSpec("8119745113154120".getBytes()));
        return android.util.Base64.encodeToString(v1_3.doFinal(p4.getBytes()), 0);
    }

Method com.mobatia.dev.encryptpro.Encryptor.decrypt() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public static String decrypt(String p2, String p3, String p4)
    {
        try {
            javax.crypto.spec.IvParameterSpec v0_1 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            String v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(2, v3_1, v0_1);
            return new String(v2_2.doFinal(java.util.Base64.getDecoder().decode(p4)));
        } catch (int v2_4) {
            v2_4.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.Encryptor.encrypt() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public static String encrypt(String p2, String p3, String p4)
    {
        try {
            String v0_4 = new javax.crypto.spec.IvParameterSpec(p3.getBytes("UTF-8"));
            java.util.Base64$Encoder v3_1 = new javax.crypto.spec.SecretKeySpec(p2.getBytes("UTF-8"), "AES");
            int v2_2 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5PADDING");
            v2_2.init(1, v3_1, v0_4);
            int v2_3 = v2_2.doFinal(p4.getBytes());
            String v4_2 = new StringBuilder();
            v4_2.append("encrypted string: ");
            v4_2.append(java.util.Base64.getEncoder().encodeToString(v2_3));
            System.out.println(v4_2.toString());
            return java.util.Base64.getEncoder().encodeToString(v2_3);
        } catch (int v2_5) {
            v2_5.printStackTrace();
            return 0;
        }
    }

Method com.mobatia.dev.encryptpro.MCrypt.<init>() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public MCrypt()
    {
        this.iv = "fedcba9876543210";
        this.SecretKey = "0123456789abcdef";
        this.ivspec = new javax.crypto.spec.IvParameterSpec(this.iv.getBytes());
        this.keyspec = new javax.crypto.spec.SecretKeySpec(this.SecretKey.getBytes(), "AES");
        try {
            this.cipher = javax.crypto.Cipher.getInstance("AES/CBC/NoPadding");
        } catch (javax.crypto.NoSuchPaddingException v0_6) {
            v0_6.printStackTrace();
        } catch (javax.crypto.NoSuchPaddingException v0_5) {
            v0_5.printStackTrace();
        }
        return;
    }