byteArrayEncryption(byte[] bytes);

ENcrypt a byte[] – Return to the available commands

  • Use as library
import static com.creoart.Ema.*;

public class Main {

public static void main(String[] args) {

...
byte[] byteArray = "Hello world".getBytes();
CustomReturn encryption = byteArrayEncryption(byteArray);
if (encryption.getResult()) {
encryptedData = encryption.getData();
}
...
}
}

It is evident that the key has already been configured.

  • Command-line operation

n/a

Scroll to Top