diff --git a/AESEncryption.java b/AESEncryption.java new file mode 100644 index 0000000..60617b6 --- /dev/null +++ b/AESEncryption.java @@ -0,0 +1,34 @@ +import java.lang.Object; +import javax.crypto.Cipher; +import java.security.GeneralSecurityException; +import javax.crypto.NoSuchPaddingException; +import java.security.NoSuchAlgorithmException; +public class AESEncryption +{ + public static void main(String[] args) + { + + } + public void encrypt() + { + + } + public static final Cipher getInstance(String transformation) + { + try + { + KeyGenerator keyGen = KeyGenerator.getInstance("AES"); + keyGen.init(128); + SecretKey key = keyGen.generateKey(); + } + catch(NoSuchPaddingException nspe) + { + System.out.println("a particular padding mechanism is requested but is not available in the environment"); + } + catch(NoSuchAlgorithmException nsae) + { + System.out.println("cryptographic algorithm is requested but is not available in the environment"); + } + } +} +