Automation and remote control are key drivers for productivity and flexibility of modern society. In production environments and at home the continuously increasing levels of service are only feasible by automating repetitive work. Automated processes must be supervised to assure safety and security (confidentiality, integrity and availability) of operation. Sensor networks strive to provide a fail safe infrastructure for surveillance and measurement by low cost redundancy, unattended operation and distributed algorithms. Cryptography is a means to assure authenticity, consistency and privacy for such distributed infrastructures. This work presents an implementation of a cryptographic protocol for public/private key establishment without trusted dealer for sensor networks based on autonomous peer to peer protocols. A simulator is presented that facilitates the development and testing of the interactive protocol stack on standard PC systems without need of complex dedicated infrastructures.