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); }
public static void Set(string key, string value) { m_Reg.SetValue(GetKey(key), DESEncryption.Encrypt(value)); }