Get Cipher Instance Blowfish
import java.security.Security;
import javax.crypto.Cipher;
public class MainClass {
public static void main(String[] args) throws Exception {
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
Cipher cipher = Cipher.getInstance("Blowfish/ECB/NoPadding");
System.out.println(cipher.getProvider());
cipher = Cipher.getInstance("Blowfish/ECB/NoPadding", "BC");
System.out.println(cipher.getProvider());
}
}
GetCipherInstanceBlowfish.zip( 1,198 k)Related examples in the same category