removed deprecated mcrypt function