Added method to extract encryption from host