예제 #1
0
파일: Helper.cs 프로젝트: padman91/Aug31st
 /// <summary>
 /// Gets string quoteId from hashed quote id
 /// </summary>
 /// <param name="hashedQuoteId"></param>
 /// <returns></returns>
 public static string GetDeHashedKey(string value)
 {
     if (!string.IsNullOrEmpty(value))
     {
         return(HashingUtility.Base64Decode(value));
     }
     return(string.Empty);
 }
예제 #2
0
파일: Helper.cs 프로젝트: padman91/Aug31st
 /// <summary>
 /// Gets Hashed QuoteId for given quote Id
 /// </summary>
 /// <param name="quoteId"></param>
 /// <returns></returns>
 public static string GetHashedValue(string key)
 {
     if (!string.IsNullOrEmpty(key))
     {
         return(HashingUtility.Base64Encode(key));
     }
     return(string.Empty);
 }