This is the implementation of our Infocom 2012/JSAC 2013 paper: 'Privacy-Preserving Profile Matching for Proximity-based Social Networking'. If you are interested please refer to http://cnsg.asu.edu/files/rui-JSAC13-1.pdf