public static string getPayerPhone(string MobileStr,string filepath,string pwd)
{
var phone = MobileStr;
byte[] src = Convert.FromBase64String(phone);
var str = "";
using (var x509 = new X509Certificate2(filepath, pwd))
{
using (var rsa = (RSACryptoServiceProvider)x509.PrivateKey)
{
var buff = rsa.Decrypt(src, true);
str = Encoding.UTF8.GetString(buff);
}
}
return str;
}