android RSA公钥加密OpenSSLX509CertificateFactory$ParsingException: Error parsing public key报错解决
RSA公钥加密publicstaticStringencrypt2(Stringdata,StringpublicKeyString)throwsException{byte[]dataBytes=data.getBytes("GB2312");//使用GB2312编码//byte[]dataBytes=data.getBytes("UTF-8");//使用UTF-8编码//将Base64编码的公