Sunday, November 16, 2014

To Decrypt Eval Key

  /// <summary>
        /// To Decrypt Eval Key
        /// </summary>
        /// <param name="queryString"></param>
        /// <returns></returns>
        public static string DecryptKey(string queryString)
        {
            CryptoServices cryptoServicesObj;
            cryptoServicesObj = new CryptoServices();
            if (!string.IsNullOrEmpty(queryString))
            {
                return cryptoServicesObj.DecryptString(queryString, "56565656");
            }
            else
            {
                return queryString;
            }
        }

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...