Updated mcrypt mode