added encryption code for secure indoor localization project