JNCryptor not working, Cannot Resolve Symbol AES256JNCryptor

125 views Asked by At

im using JNCryptor library, but i got error "Cannot Resolve Symbol AES256JNCryptor" red font

 JNCryptor cryptor = new AES256JNCryptor();
    byte[] plaintext = "Hello, World!".getBytes();
    String password = "secretsquirrel";

    try {
        byte[] ciphertext = cryptor.encryptData(plaintext, password.toCharArray());
    } catch (CryptorException e) {
        // Something went wrong
        e.printStackTrace();
    }

my android studio version 2.1.2

can you tell me where is the wrong ?

thanks

1

There are 1 answers

0
chadi sfeir On

You need to import the class, hover over and press alt + enter or copy and paste this :

import org.cryptonode.jncryptor.AES256JNCryptor;