Beispiel #1
0
        private void handleDecryptLuong(NhanVien item)
        {
            var priKey = KeyRepository.GetPrivateKey(this.nhanVienDangNhap.PubKey, password);

            if (!String.IsNullOrEmpty(priKey))
            {
                item.Luong = rsaCryptoService.Decrypt(priKey, item.Luong);
            }
        }
        private void bangDiemFrmButton_Click(object sender, EventArgs e)
        {
            var         priKey = KeyRepository.GetPrivateKey(this.curNhanVien.PubKey, password);
            frmBangDiem frm    = null;

            if (!String.IsNullOrEmpty(priKey))
            {
                frm = new frmBangDiem(curNhanVien, priKey);
            }
            else
            {
                frm = new frmBangDiem();
            }
            frm.Show();
        }