Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }