code: private static SecretKey getKey(String strKey) {
          try {
              KeyGenerator _generator = KeyGenerator.getInstance(AES);
              SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG");
              secureRandom.setSeed(strKey.getBytes());
              _generator.init(128, secureRandom);
              return _generator.generateKey();
          } catch (Exception e) {
              throw new RuntimeException(" 初始化密钥出现异常 ");
          }
      }
docs: AES加密