Security in an ad hoc world