*/ class Varien_Crypt { /** * Factory method to return requested cipher logic * * @param string $method * @return Varien_Crypt_Abstract */ static public function factory($method='mcrypt') { $uc = str_replace(' ','_',ucwords(str_replace('_',' ',$method))); $className = 'Varien_Crypt_'.$uc; return new $className; } }