Java IV Generate generateIV()

Here you can find the source of generateIV()

Description

generate IV

License

Open Source License

Declaration

public static byte[] generateIV() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.security.SecureRandom;

public class Main {
    public static byte[] generateIV() {
        SecureRandom random = new SecureRandom();
        byte[] iv = new byte[16];
        random.nextBytes(iv);/*  w  ww  . j  ava  2  s .c om*/
        return iv;
    }
}

Related

  1. generateIV()
  2. generateIV()
  3. generateIV()
  4. generateIV()