無線感測網路已經被廣泛的應用到數種環境上,它通常被用來監測並感測周圍環境的各種資料。這些資料通常包含了重要的資訊。但由於無線感測網路能力與資源的限制,使得網路中傳輸過程容易發生被竊聽或是干擾的情形。資料在傳送的過程中,若遭受干擾或竄改的情況,這些情況可能會造成資料無法送達正確的目的端,或是目的端所收到的資料是不正確的。因此,確保資料可以正確地送達目的端以及資料的機密性是很重要的議題。 本論文提出有效的金鑰管理方法來建立節點之間的成對金鑰,並使用對稱式加密法來保護訊息的安全。另外,我們也提出適用於無線感測網路下的安全路由協定,藉此來提供傳送資料用的強健的路由路徑,且該路徑可以抵抗數種針對路由協定的攻擊。透過該協定,我們可以確保目的端可以正確地收到資料。 Wireless Sensor Networks (WSNs) has been widely applied to sense the important data from environment. The data usually contain important information. Because the resources limitations of wireless sensor networks, the data may be eavesdropping or jamming may easily occurs. The data may be eavesdropping, jamming or tampered easily during the data forwarding process. These lead the data can not reach the correct destination or the data that destination receives may be incorrect. The base station get the corrected data and the confidentiality of transmitted data are an important issues of WSNs. This thesis proposes an efficient key management scheme to establish the pairwise key between sensor nodes and use the symmetric cryptography to secure messages base on the pairwise key. In addition, we propose a secure routing protocol for wireless sensor networks to provide a robust routing path for data forwarding, and it defends several kinds of attacks on the routing protocols. The proposed scheme guarantees that the destination received the data correctly.