Replacing JAVA with PHP for PKCS5 encryption
问题 I have been tasked with replacing a legacy java system with something which runs PHP. I am getting a little stuck on replacing the java cryptography with PHP code. cipherAlgorythm = "PBEWithMD5AndDES"; cipherTransformation = "PBEWithMD5AndDES/CBC/PKCS5Padding"; PBEParameterSpec ps = new javax.crypto.spec.PBEParameterSpec(salt, iterations); SecretKeyFactory kf = SecretKeyFactory.getInstance(cipherAlgorythm); SecretKey key = kf.generateSecret(new javax.crypto.spec.PBEKeySpec(password