title: Cannot resolve symbol BASE64Decoder (Java version 9.0.1)
body: <p>When I return encrypted or decrypted string in Base64 format it can<code>t resolve</code>BASE64Encoder()<code>and</code>BASE64Dencoder()`. How can I resolve it?</p>
  
  <pre><code>import javax.crypto.*;
  import java.io.*;
  import java.security.InvalidKeyException;
  import java.security.NoSuchAlgorithmException;
  
  class DesEncrypter {
      Cipher ecipher;
      Cipher dcipher;
  
  public DesEncrypter(SecretKey key) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {
      ecipher = Cipher.getInstance("DES");
      dcipher = Cipher.getInstance("DES");
      ecipher.init(Cipher.ENCRYPT_MODE, key);
      dcipher.init(Cipher.DECRYPT_MODE, key);
  }
  
  public String encrypt(String str) throws UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException {
      byte[] utf8 = str.getBytes("UTF8");
      byte[] enc = ecipher.doFinal(utf8);
      return new sun.misc.BASE64Encoder().encode(enc);
  }
  
  public String decrypt(String str) throws IOException, IllegalBlockSizeException, BadPaddingException {
      byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
      byte[] utf8 = dcipher.doFinal(dec);
      return new String(utf8, "UTF8");
  }
  </code></pre>
  
  <p>}</p>