keepassphp/keepassphp.php
public static function addKeyFile(CompositeKey $mkey, $file)
	{
		if(empty($file))
			return true;
		$k = new KeyFromFile(file_get_contents($file));
		if(!$k->isParsed)
			return false;
		$mkey->addKey($k);
		return true;
	}
public static function addKeyFile(CompositeKey $mkey, $file)
	{
		if(empty($file))
			return true;
		$k = new KeyFromFile(file_get_contents($file));
		if(!$k->isParsed)
			return false;
		$mkey->addKey($k);
		return true;
	}
public static function addKeyFile ( CompositeKey $ mkey , $ file ) { if ( empty ( $ file ) ) return true ; $ k = new KeyFromFile ( file_get_contents ( $ file ) ) ; if ( ! $ k -> isParsed ) return false ; $ mkey -> addKey ( $ k ) ; return true ; }
Adds a file key to a master key.
@param $mkey A master key.
@param $file The path of a file key.
@return true if the operation succeeded, false otherwise.
Adds a file key to a master key .