this is the current code for dev_security

completed by justin trantham, has not been checked against coding
standards yet