Security in opportunistic communications