Decrypt an encrypted byte[] – Return to the available commands
- Use as library
import static com.creoart.Ema.*;
public class Main {
public static void main(String[] args) {
...
CustomReturn decryption = byteArrayDecryption(getEncryptedByteArray());
if (decryption.getResult()) {
byte[] decryptedData = new byte[decryption.getData().length];
if (decryption.getResult()) {
decryptedData = decryption.getData();
}
}
...
}
}
It is evident that the same Java session must be considered in which a byte array has been encrypted and the same key is still configured.
- Command-line operation
n/a