Beispiel #1
0
        private void Work()
        {
            try
            {
                //Func<string, string> funcEncrypt = Cryptographer.Encrypt;
                //Func<string, string> funcDecrypt = Cryptographer.Decrypt;

                // 암복호화 메소드
                CryptoManager manager = new CryptoManager(AESEncryption, AESDecryption);

                // 암호화할 테이블의 필드들
                manager.SetTableFieldList("Employee", new List<string> { "SocialSecurityNo" });
                manager.SetTableFieldList("EmployeeFamily", new List<string> { "SocialSecurityNo" });

                // 종료이벤트
                manager.ProcessCompleted += manager_ProcessCompleted;

                // 시작
                manager.Run();
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
                this.Close();
            }
        }
Beispiel #2
0
 void manager_ProcessCompleted(object sender, CryptoManager.ProcessCompletedEventArgs e)
 {
     this.Close();
 }