Cipher DES = Cipher.getInstance("DES");
byte[] decodedKey1 = java.util.Base64.getDecoder().decode(key);
SecretKey originalKey1 = new SecretKeySpec(decodedKey1, 0, decodedKey1.length, "DES");
DES.init(Cipher.ENCRYPT_MODE, originalKey1);
byte[] line = input.getBytes("UTF-8");
byte[] encryptedDes = DES.doFinal(line);