@Override
  public SecretKey generate() {
    try {
      KeyGenerator generator = KeyGenerator.getInstance(ALGORITHM);
      return generator.generateKey();
    } catch (NoSuchAlgorithmException e) {
      monitor.severe(() -> "NoSuchAlgorithmException for: " + ALGORITHM, e);
      throw new RuntimeException("Error creating key generator", e);
    }
  }
AES-based implementation for {@link SecretKey} creation and encoding.
libraries/security/src/main/java/org/datatransferproject/security/AesSymmetricKeyGenerator.java