changed encode_mcrypt() and decode_mcrypt() tp private functions with _ prefix