bf ecb使用openssl加密,方式与Java中相同

bf ecb使用openssl加密,方式与Java中相同,java,openssl,Java,Openssl,在传统Java系统中进行加密,如下所示: Cipher cipher = Cipher.getInstance("Blowfish/ECB/NoPadding"); cipher.init(1, new SecretKeySpec(theKey.getBytes(), "BlowFish")); byte[] arrayOfByte = cipher.doFinal(inputString.getBytes()); String result = new BASE64Encoder().enco

在传统Java系统中进行加密,如下所示:

Cipher cipher = Cipher.getInstance("Blowfish/ECB/NoPadding");
cipher.init(1, new SecretKeySpec(theKey.getBytes(), "BlowFish"));
byte[] arrayOfByte = cipher.doFinal(inputString.getBytes());
String result = new BASE64Encoder().encode(arrayOfByte);
我试图用openssl复制它,但我没有得到相同的输出

我正在努力:

openssl enc -base64 -A -bf-ecb -nosalt -in input -pass pass:secret