This paper describes the techniques for establishing secure associations between mobile devices in pervasive computing where the communications are often established with minimal priori knowledge. An improved method for securing the association by comparing a hashed key using Data Matrix will be presented. A Data Matrix displayed or printed on another device in the association is captured with a built-in digital camera. The image is then used to validate the device's public key.