Ejemplo n.º 1
0
        public async Task <bool> FFFf(Dictionary <string, string> dict)
        {
            bool e = await SoftWebValid.Check_Face(dict["Image1"], dict["Image2"]);

            result2 = e;
            if (result2)
            {
                _view.Check(1);
            }
            return(e);
        }
Ejemplo n.º 2
0
        public void AddSoft(object sender, object arg)
        {
            Dictionary <string, string> args = (Dictionary <string, string>)arg;

            byte[] full_hash = Crypt.Get_Hash(String.Format("{0}{1}{2}{3}{4}",
                                                            args["Surname"],
                                                            args["Name"],
                                                            args["Name_2"],
                                                            args["Birthday"],
                                                            args["Passport"],
                                                            args["Color"],
                                                            args["MumSurname"],
                                                            args["Image1"]));
            byte[] hash = Crypt.Get_Hash(String.Format("{0}{1}{2}{3}{4}",
                                                       args["Surname"],
                                                       args["Name"],
                                                       args["Name_2"],
                                                       args["Birthday"],
                                                       args["Passport"]));
            SoftWebValid.Put_Bio(hash, full_hash, File.ReadAllBytes(args["Image1"]));
            SoftWebValid.Get_Image(hash, full_hash);//Проверка на дешифровку
        }