In general, security isn't something that can be tacked on as an afterthought, it has to be built in from the beginning.