public static SecretKey generatorKey()

in app/src/main/java/com/epam/securestorage/core/KeyStoreHelper.java [65:74]


    public static SecretKey generatorKey(String alias) throws Exception {
        KeyGenParameterSpec keyGenParameterSpec = new KeyGenParameterSpec
                .Builder(alias, KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
                .setBlockModes(KeyProperties.BLOCK_MODE_CBC)
                .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
                .build();
        KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES, ANDROID_KEY_STORE);
        keyGenerator.init(keyGenParameterSpec);
        return keyGenerator.generateKey();
    }