added encryption with mcrypt