Example #1
0
 public static string Get(string key)
 {
     if (m_Reg.GetValue(GetKey(key)) is byte[] bytes &&
         DESEncryption.TryDecrypt(bytes, out string value))
     {
         return(value);
     }
     return(string.Empty);
 }
Example #2
0
 public static void Set(string key, string value)
 {
     m_Reg.SetValue(GetKey(key), DESEncryption.Encrypt(value));
 }