public void SubForm(object sender, object arg) { Dictionary <string, string> dict = (Dictionary <string, string>)arg; Dictionary <string, byte[]> full_hash = new Dictionary <string, byte[]>(); foreach (KeyValuePair <string, string> i in dict) { full_hash.Add(i.Key, Crypt.Get_Hash(i.Value)); } HardWebValid.Put_Hash(full_hash); }
public void Restore(object sender, object args) { Dictionary <string, string> dict = (Dictionary <string, string>)args; Dictionary <string, byte[]> full_hash = new Dictionary <string, byte[]>(); foreach (KeyValuePair <string, string> i in dict) { full_hash.Add(i.Key, Crypt.Get_Hash(i.Value)); } bool result1 = HardWebValid.Check_Hash(full_hash); if (result1) { _view.Check(0); } FFFf(dict); }