private static final IvParameterSpec generateIv(Cipher cipher) throws NoSuchAlgorithmException {
    SecureRandom randomSecureRandom = SecureRandom.getInstance("SHA1PRNG");
    byte[] iv = new byte[cipher.getBlockSize()];
    randomSecureRandom.nextBytes(iv);
    return new IvParameterSpec(iv);
  }
Provides AES and RSA-based encryption implementations for decryption. See {@link
DecrypterFactory} to create.
libraries/security/src/main/java/org/datatransferproject/security/DecrypterImpl.java