Some sweeping syntax changes for consistency:

(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php
index 4b13efd..7ad5772 100644
--- a/system/libraries/Encrypt.php
+++ b/system/libraries/Encrypt.php
@@ -1,4 +1,4 @@
-<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 /**

  * CodeIgniter

  *

@@ -44,7 +44,7 @@
 	function CI_Encrypt()

 	{

 		$this->CI =& get_instance();

-		$this->_mcrypt_exists = (! function_exists('mcrypt_encrypt')) ? FALSE : TRUE;

+		$this->_mcrypt_exists = ( ! function_exists('mcrypt_encrypt')) ? FALSE : TRUE;

 		log_message('debug', "Encrypt Class Initialized");

 	}

   	

@@ -459,9 +459,9 @@
 	 */	

 	function sha1($str)

 	{

-		if (! function_exists('sha1'))

+		if ( ! function_exists('sha1'))

 		{

-			if (! function_exists('mhash'))

+			if ( ! function_exists('mhash'))

 			{	

 				require_once(BASEPATH.'libraries/Sha1'.EXT);

 				$SH = new CI_SHA;

@@ -481,6 +481,6 @@
 }

 

 // END CI_Encrypt class

-
-/* End of file Encrypt.php */
+

+/* End of file Encrypt.php */

 /* Location: ./system/libraries/Encrypt.php */
\ No newline at end of file