Establishment of ad-hoc communities through policy-based cryptography