Create security device.c

This is the main file.