The document describes a security protocol called SPINS (Security Protocols for Sensor Networks) that is optimized for resource-constrained wireless sensor networks. SPINS consists of two security building blocks: SNEP and TESLA. SNEP provides data confidentiality, authentication, integrity and freshness with low overhead. TESLA provides authenticated broadcast, which is challenging for sensor networks. The protocols were implemented on prototype sensor nodes and shown to perform well within the limited capabilities of the hardware.