long startTime = System.currentTimeMillis(); byte[] plain = plaintext.getText().getBytes(); byte[] K = key.getText().getBytes(); byte[] encrypted = encrypt(plain, K); String a = bytesToHex(encrypted); encryptedtext.setText(a); long stopTime = System.currentTimeMillis(); long elapsedTime = stopTime - startTime; time.setText(elapsedTime);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)