Exemple #1
0
        public bool Decrypt()
        {
            try
            {
                System = ClassCrypt.Decrypt(System);
                Number = ClassCrypt.Decrypt(Number);

                return(true);
            }
            catch { return(false); }
        }
Exemple #2
0
 public bool Encrypt()
 {
     try
     {
         Currency = ClassCrypt.Encrypt(Currency);
         Creditor = ClassCrypt.Encrypt(Creditor);
         Debtor   = ClassCrypt.Encrypt(Debtor);
         return(true);
     }
     catch { return(false); }
 }
Exemple #3
0
 public virtual bool Encrypt()
 {
     try
     {
         Currency = ClassCrypt.Encrypt(Currency);
         Category = ClassCrypt.Encrypt(Category);
         Name     = ClassCrypt.Encrypt(Name);
         return(true);
     }
     catch { return(false); }
 }
 public bool Encrypt()
 {
     try
     {
         Name  = ClassCrypt.Encrypt(Name);
         Pass  = ClassCrypt.Encrypt(Pass);
         Link  = ClassCrypt.Encrypt(Link);
         Login = ClassCrypt.Encrypt(Login);
         return(true);
     }
     catch { return(false); }
 }
Exemple #5
0
        public bool Decrypt()
        {
            try
            {
                Name        = ClassCrypt.Decrypt(Name);
                Link        = ClassCrypt.Decrypt(Link);
                Description = ClassCrypt.Decrypt(Description);

                return(true);
            }
            catch { return(false); }
        }
Exemple #6
0
 public bool Encrypt()
 {
     try
     {
         foreach (StepSheduleDay day in SheduleDays)
         {
             day.Encrypt();
         }
         Description = ClassCrypt.Encrypt(Description);
         return(true);
     }
     catch { return(false); }
 }
Exemple #7
0
 public bool Decrypt()
 {
     try
     {
         Description = ClassCrypt.Decrypt(Description);
         foreach (StepSheduleDay day in SheduleDays)
         {
             day.Decrypt();
         }
         return(true);
     }
     catch { return(false); }
 }
 public bool Encrypt()
 {
     try
     {
         NameProject = ClassCrypt.Encrypt(NameProject);
         Description = ClassCrypt.Encrypt(Description);
         foreach (ProjectStep step in ProjectSteps)
         {
             step.Encrypt();
         }
         return(true);
     }
     catch { return(false); }
 }
 public bool Encrypt()
 {
     try
     {
         NameTarget        = ClassCrypt.Encrypt(NameTarget);
         DescriptionTarget = ClassCrypt.Encrypt(DescriptionTarget);
         foreach (Step step in Steps)
         {
             step.Encrypt();
         }
         return(true);
     }
     catch { return(false); }
 }
        public bool Encrypt()
        {
            try
            {
                NamePlan = ClassCrypt.Encrypt(NamePlan);
                foreach (PunktOfPlan punkt in punktOfPlans)
                {
                    punkt.Encrypt();
                }

                return(true);
            }
            catch { return(false); }
        }
 public bool Encrypt()
 {
     try
     {
         Name = ClassCrypt.Encrypt(Name);
         Text = ClassCrypt.Encrypt(Text);
         for (int i = 0; i < keyWords.Count; i++)
         {
             keyWords[i] = ClassCrypt.Encrypt(keyWords[i]);
         }
         return(true);
     }
     catch { return(false); }
 }
Exemple #12
0
        public bool Decrypt()
        {
            try
            {
                Name        = ClassCrypt.Decrypt(Name);
                Description = ClassCrypt.Decrypt(Description);
                Category    = ClassCrypt.Decrypt(Category);

                for (int i = 0; i < KeyWords.Count; i++)
                {
                    KeyWords[i] = ClassCrypt.Decrypt(KeyWords[i]);
                }
                return(true);
            }
            catch { return(false); }
        }
Exemple #13
0
 /// <summary>
 /// Шифрование
 /// </summary>
 /// <returns></returns>
 public bool Encrypt()
 {
     try
     {
         calendar.Encrypt();
         diary.Encrypt();
         finansialAssistant.Encrypt();
         information.Encrypt();
         notes.Encrypt();
         photo.Encrypt();
         plants.Encrypt();
         routineDay.Encrypt();
         test = ClassCrypt.Encrypt(test);
         return(true);
     }
     catch { return(false); }
 }
Exemple #14
0
        private void tsCrypt_Click(object sender, EventArgs e)
        {
            FormCryptKey form = new FormCryptKey("");

            if (!data.Crypted())
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    try
                    {
                        ClassCrypt.SetKey(form.textBoxKey.Text);
                        data.Encrypt();
                        MessageBox.Show("Операция завершена");
                    }
                    catch (Exception ex) { MessageBox.Show(ex.Message); }
                }
            }
            else
            {
                MessageBox.Show("Шифрование уже выполнено!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemple #15
0
 public bool Decrypt()
 {
     try
     {
         Name        = ClassCrypt.Decrypt(Name);
         LastName    = ClassCrypt.Decrypt(LastName);
         SurName     = ClassCrypt.Decrypt(SurName);
         Interests   = ClassCrypt.Decrypt(Interests);
         Description = ClassCrypt.Decrypt(Description);
         foreach (Kontact kontact in Kontacts)
         {
             kontact.Decrypt();
         }
         AdditionalInformation   = ClassCrypt.Decrypt(AdditionalInformation);
         FamilyStatus            = ClassCrypt.Decrypt(FamilyStatus);
         EducationLevel          = ClassCrypt.Decrypt(EducationLevel);
         EducatonLocationAndSpec = ClassCrypt.Decrypt(EducatonLocationAndSpec);
         WorkPlace    = ClassCrypt.Decrypt(WorkPlace);
         WorkPosition = ClassCrypt.Decrypt(WorkPosition);
         return(true);
     }
     catch { return(false); }
 }
Exemple #16
0
 /// <summary>
 /// Проверка правильности введенного ключа шифрования
 /// </summary>
 /// <returns>Истина, если все правильно</returns>
 public bool CryptKeyTest()
 {
     return(ClassCrypt.Decrypt(test) == getTestString());
 }