You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
594 B
20 lines
594 B
using System;
|
|
|
|
namespace Common.Extension
|
|
{
|
|
public static class StringExtension
|
|
{
|
|
public static string ToVirtualKeyDecryptString(this string cipher,string key="") {
|
|
try
|
|
{
|
|
mTranskeyServerComLib.MTranskeySrvLib lib = new mTranskeyServerComLib.MTranskeySrvLib();
|
|
//string decode = lib.RS_MTK_Decrypt(key, cipher);
|
|
string decode = lib.RS_MTK_DecryptSecureData(cipher);
|
|
return decode;
|
|
}
|
|
catch (Exception ex){
|
|
return "";
|
|
}
|
|
}
|
|
}
|
|
}
|