First code of CaSecurity