Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="value"></param>
 /// <param name="useHashing"></param>
 /// <param name="secretKey"></param>
 /// <returns></returns>
 public static string DecryptDES(this string value, bool useHashing = false, string secretKey = secretKeyDES)
 {
     return(DESTriple.DecryptString(value, useHashing, secretKey));
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="value"></param>
 /// <param name="useHashing"></param>
 /// <param name="secretKey"></param>
 /// <returns></returns>
 public static string EncryptDES(this object value, bool useHashing = false, string secretKey = secretKeyDES)
 {
     return(DESTriple.EncryptString(value.ToString(), useHashing, secretKey));
 }