/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; import java.security.GeneralSecurityException; /* Name of the class has to be "Main" only if the class is public. */ class Ideone { { byte[] buf = Base64.getDecoder().decode("AutMdzthDvPlE+UnhcHa2h4UZGPdme7t"); byte[] keyBytes = key.getBytes("UTF8"); Cipher cipher = Cipher.getInstance("Blowfish/ECB/PKCS5Padding"); cipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(keyBytes, "Blowfish")); byte[] newBytes = cipher.doFinal(buf); } }
Standard input is empty