Пример #1
0
        private string EncryptAuthState(AuthOrderDto order, CreateAuthOrderInput input)
        {
            var state       = $"{order.Id}_{input.AuthState}_{DateTime.Now.ToString("fff")}";
            var encryptData = TripleDESHelper.Encrypt(Encoding.UTF8.GetBytes(state), this._appSettings.GetTripleDESKeyData(), null, CipherMode.ECB, PaddingMode.PKCS7);

            return(MD5Helper.ConvertToString(encryptData));
        }