keepassphp/util/cipher.php
public function setMethod($method)
	{
		parent::setMethod($method);
		$method = strtolower($method);
		if($method == "aes-256-ecb")
		{
			$this->_type = MCRYPT_RIJNDAEL_128;
			$this->_mode = "ecb";
		}
		elseif($method == "aes-256-cbc")
		{
			$this->_type = MCRYPT_RIJNDAEL_128;
			$this->_mode = "cbc";
		}
	}
public function setMethod($method)
	{
		parent::setMethod($method);
		$method = strtolower($method);
		if($method == "aes-256-ecb")
		{
			$this->_type = MCRYPT_RIJNDAEL_128;
			$this->_mode = "ecb";
		}
		elseif($method == "aes-256-cbc")
		{
			$this->_type = MCRYPT_RIJNDAEL_128;
			$this->_mode = "cbc";
		}
	}
public function setMethod ( $ method ) { parent :: setMethod ( $ method ) ; $ method = strtolower ( $ method ) ; if ( $ method == "aes-256-ecb" ) { $ this -> _type = MCRYPT_RIJNDAEL_128 ; $ this -> _mode = "ecb" ; } elseif ( $ method == "aes-256-cbc" ) { $ this -> _type = MCRYPT_RIJNDAEL_128 ; $ this -> _mode = "cbc" ; } }
Sets the cipher method to use.
@param $method One of the OpenSSL ciphers constants.
Sets the cipher method to use .