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

1 year ago
  1. using System;
  2. namespace Common.Extension
  3. {
  4. public static class StringExtension
  5. {
  6. public static string ToVirtualKeyDecryptString(this string cipher,string key="") {
  7. try
  8. {
  9. mTranskeyServerComLib.MTranskeySrvLib lib = new mTranskeyServerComLib.MTranskeySrvLib();
  10. //string decode = lib.RS_MTK_Decrypt(key, cipher);
  11. string decode = lib.RS_MTK_DecryptSecureData(cipher);
  12. return decode;
  13. }
  14. catch (Exception ex){
  15. return "";
  16. }
  17. }
  18. }
  19. }