Converting java code for 3DES Encryption with md5 message digest and DESede/CBC/PKCS5Padding to python
问题 I have this working java code which encrypts the passphrase with 3DES encryption- import java.security.MessageDigest; import java.util.Arrays; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; public class Main{ public static void main(String[] args) throws Exception { String text = "aug@2019"; String codedtext = new Main().encrypt(text); System.out.println(codedtext); } public