Java Cipher get instance "Blowfish/ECB/NoPadding"

Description

Java Cipher get instance "Blowfish/ECB/NoPadding"


import javax.crypto.Cipher;

public class Main {
  public static void main(String[] args) throws Exception {
    Cipher cipher = Cipher.getInstance("Blowfish/ECB/NoPadding");

    System.out.println(cipher.getProvider());

    cipher = Cipher.getInstance("Blowfish/ECB/NoPadding", "BC");

    System.out.println(cipher.getProvider());
  }//from  www.j  a va2  s. c o  m
}



PreviousNext

Related