Enhanced intrusion detection and cryptographic technique for secured communication in mobile ad-hoc networks