Secure healthcare data sharing for the Internet of Things scenario using encryption and optimal routing