From 527028927787a16cf327f54a917c4df6ca1ae84d Mon Sep 17 00:00:00 2001 From: school Date: Tue, 20 Nov 2018 13:08:54 -0600 Subject: [PATCH] added Raelyn's files --- AESEncryption.java | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 AESEncryption.java 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"); + } + } +} +