Create security.c

General security operations