Java tutorial
//package com.java2s; import java.security.spec.AlgorithmParameterSpec; import javax.crypto.spec.IvParameterSpec; public class Main { private static AlgorithmParameterSpec getIV() { byte[] iv = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; IvParameterSpec ivParameterSpec; ivParameterSpec = new IvParameterSpec(iv); return ivParameterSpec; } }