fork download
  1. import javax.crypto.*;
  2. import javax.crypto.interfaces.*;
  3. import javax.crypto.spec.*;
  4.  
  5.  
  6. class AES
  7. {
  8. Cipher cipher;
  9. public AES() {
  10. cipher = Cipher.getInstance("AES");
  11. }
  12.  
  13. public static void main(String[] args)
  14. {
  15.  
  16.  
  17. }
  18.  
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: unreported exception java.security.NoSuchAlgorithmException; must be caught or declared to be thrown
    cipher = Cipher.getInstance("AES"); 
                               ^
1 error
stdout
Standard output is empty