change the certificate and fix the 3DES EncryBuffer function