A secure system using RPI