vendredi 30 juin 2017

Can i use Reflection to break limit on AES encryption limit in my banking project?

Can I use Reflection (as below) to break limit on encryption limit in my banking project? What could be the side effects of putting this code inside a single class?

static {
    try {
        Field field = Class.forName("javax.crypto.JceSecurity")
                           .getDeclaredField("isRestricted");
        field.setAccessible(true);
        field.set(null, java.lang.Boolean.FALSE);
    } catch (Exception ex) {
    }
}





Aucun commentaire:

Enregistrer un commentaire