()
| 102 | } |
| 103 | |
| 104 | public static byte[] generateAESKey() { |
| 105 | byte[] result = new byte[32]; |
| 106 | new SecureRandom().nextBytes(result); |
| 107 | return result; |
| 108 | } |
| 109 | |
| 110 | public static byte[] encryptAES(byte[] input, byte[] key) |
| 111 | throws InvalidCipherTextException { |