TAILIEUCHUNG - Professional Microsoft Smartphone Programming phần 8

Ví dụ trên cho thấy làm thế nào để bảo vệ một cơ sở dữ liệu với một mật khẩu và mã hóa. Lưu ý rằng ứng dụng dự kiến sẽ chỉ chạy một lần bởi vì bạn không muốn tạo ra cơ sở dữ liệu hoặc bảng liên tục. | Data and Communication Security private void mnuQuit_Click object sender EventArgs e Because accessing a database is normally error prone it is always a good practice to put the database-related operations in the try block and handle possible exceptions in the catch block. Figures 13-5 and 13-6 show the running results of the application. The preceding example demonstrates how to protect a database with a password and encryption. Note that the application is expected to run only once because you don t want to create the same database or table repeatedly. Figure 13-5 345 Chapter 13 Figure 13-6 Securing Communication Channels The thin-client nature of Smartphone devices means that they are constantly talking to various servers to access information. When passing sensitive data over a network especially a wireless network it is extremely important to secure the communication at both ends. Network Authentication Network authentication should be applied before a user can access any information. The .NET Compact Framework supports both the Microsoft NTLM and Kerberos authentication protocols. Microsoft NTLM or Windows NT LAN Manager is a network authentication protocol based on challenge and response. The server stores a user s password in an encrypted format. The client machine initiates the authentication process with a negotiate message and then the server sends a challenge message that contains the message type the security signature and the negotiation type. The client then encrypts the challenge message with the user s password typically using the DES algorithm. The encrypted message is then sent out to the server as the response message. The same algorithm is applied on the server side. The result is then compared to the response from the client. If they match the authentication is successful. An advantage of NTLM is that the user s password is not sent over the network during the authentication process. 346 Data and Communication Security .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.