1
dengjunjie
2025-02-18 b2ad000e07e1c87d3561b5aa94fdc88c779872f0
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/SecurityEncDecryptHelper.cs
@@ -4,6 +4,8 @@
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Const;
using WIDESEA_Core.DB;
namespace WIDESEA_Core.Helper
{
@@ -54,6 +56,9 @@
        public static string DecryptDES(this string decryptString, string decryptKey)
        {
            if (decryptKey == AppSecret.DB && !AppSettings.app(MainDb.ConnectionStringsEncryption).ObjToBool())
                return decryptString;
            byte[] rgbKey = Encoding.UTF8.GetBytes(decryptKey.Substring(0, 16));
            byte[] rgbIV = Keys;
            byte[] inputByteArray = Convert.FromBase64String(decryptString.Replace('_', '+').Replace('~', '/'));
@@ -70,7 +75,6 @@
                    }
                }
            }
        }
        public static bool TryDecryptDES(this string decryptString, string decryptKey, out string result)
        {