Added some cipher encryption code