byte[] plain = plaintext.getText().getBytes(); byte[] K = key.getText().getBytes(); byte[] encrypted = encrypt(plain, K); String a = bytesToHex(encrypted); encryptedtext.setText(a); String desc[] = new String[]{"bytes ", " kilobytes", " megabytes", " gigabytes", "terabytes", "petabytes", "exabytes", "zettabytes", "yottabytes"}; String s = plaintext.getText(); double len = s.length(); for (String d : desc) { size.setText(d + " : " + len); len /= 1024; }
size.append("\n");
size.append(d + " : " + len+"\n");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)