Static function generates German phrase password.

@param int    $lenght    Password length in words.
@param string $separator Word separator.

@return string Generated password.
775492
public static function generateDe($lenght = 4, $separator = ' ')
    {
        $list = new WordList\De();
        return (new static($list))->generate($lenght, $separator);
    }
170586
static public function uuid($separator=true)
    {
        if (function_exists('com_create_guid')){
            return com_create_guid();
        }else{
            mt_srand((double)microtime()*10000);    //optional for php 4.2.0 and up.
            $charid = strtoupper(md5(uniqid(mt_rand(), true)));
            $hyphen = $separator ? chr(45) : '';  // "-"
            $uuid = substr($charid, 0, 8).$hyphen
            .substr($charid, 8, 4).$hyphen
            .substr($charid,12, 4).$hyphen
            .substr($charid,16, 4).$hyphen
            .substr($charid,20,12);
            //$uuid = chr(123) . $uuid .chr(125);  // "{" "}"
            return $uuid;
        }
    }
1058670
public function getBlowfishDecryptedValue($cipherText, $length, $password): string
    {
        return $this->getFactory()->createBlowfishHasher()->getBlowfishDecryptedValue($cipherText, $length, $password);
    }
1240846
public function convertToOrd($str, $separator = '-') {
		$chars = preg_split('//', $str, -1);
		$res = [];
		foreach ($chars as $char) {
			//$res[] = UnicodeLib::ord($char);
			$res[] = ord($char);
		}
		return implode($separator, $res);
	}
847118
public static function getPassword($length = 8)
	{
		$password = "";

		for ($i = 0; $i < $length; $i++) {
			$password .= self::getSymbol(mt_rand(0, 2));
		}

		return $password;
	}
684325
public static final function frns(string $string, string $separator = '.'): string {
		return implode($separator, preg_split('/\\\/', trim(strtolower($string)), -
			1, PREG_SPLIT_NO_EMPTY));
	}
1361807
public static function _randomPassword ($length = self::DEFAULT_PASSWORD_LENGTH, $charset = self::DEFAULT_PASSWORD_CHARACTERS)
	{
		
		// Set password variable
		
		$password	= '';

		// Set i to the password length
		
		$i = $length;

		// Loop until the password is the desired length
		
		while ($i > 0)
		{
			
			// Choose a random character from the charset
			
			$char = $charset[mt_rand (0, strlen ($charset) -1)];

			// Make sure that the first character of the password is a number or letter
			
			if ($password == '' && !preg_match('/[0-9A-Za-z]/', $char))
			{
				continue;
			}
			
			// Add the character to the password
			
			$password .= $char;

			// Decrement rounds
			
			$i--;

		}

		// Return the password
		
		return $password;

	}
939166
public static function implode($array, $separator = " > ")
    {
        if ($array === null) {
            return "";
        }

        $elements = [];
        foreach($array as $rawElement) {
            $element = self::sanitizeString($rawElement);

            if ($element !== null) {
                $elements[] = $element;
            }
        }

        return implode($separator, $elements);
    }
1011567
protected function generatePassword($count = 10)
    {
        $passwd = '';
        $possible = '23456789ABCDEFGHJKLMNPQRSTVWXYZabcdefghijkmnpqrstvwxyz';
        $i = 0;
        while ($i < $count) {
            $char = $possible[random_int(0, \strlen($possible) - 1)];
            $passwd .= $char;
            ++$i;
        }

        return $passwd;
    }
1007308
public function substringAfterLast($separator)
    {
        if (($offset = $this->indexOfLast($separator)) === false) {
            return false;
        }

        return static::create(mb_substr($this->str, $offset + mb_strlen($separator, $this->encoding), null, $this->encoding), $this->encoding);
    }
1144073
public static function removeFirst(string $string, string $separator): string
    {
        $string = explode($separator, $string);
        $string = Arr::removeFirst($string);
        return implode($separator, $string);
    }
477627
public function getJoinedMessage($separator = "\n")
    {
        $messages = $this->getDetailMessages();
        $array = array();
        foreach ($messages as $rules) {
            foreach ($rules as $options) {
                foreach ($options as $message) {
                    $array[] = $message;
                }
            }
        }
        return implode($separator, array_unique($array));
    }
1195140
public static function getSlug($text, $separator = '-')
    {
        return strtolower(
            trim(
                preg_replace('~[^0-9a-z]+~i', '-', html_entity_decode(
                    preg_replace('~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i', '$1', htmlentities(
                        $text, ENT_QUOTES, 'UTF-8'
                    )
                ), ENT_QUOTES, 'UTF-8')
            ), $separator)
        );
    }
245106
public static function generateRu($lenght = 4, $separator = ' ')
    {
        $list = new WordList\Ru();
        return (new static($list))->generate($lenght, $separator);
    }
1165050
public function build($length = null, $charset = null)
    {
        if ($length !== null) {
            $this->length = $length;
        }
        if ($charset !== null) {
            $this->charset = $charset;
        }

        $phrase = '';
        $chars = str_split($this->charset);

        for ($i = 0; $i < $this->length; $i++) {
            $phrase .= $chars[array_rand($chars)];
        }

        return $phrase;
    }
1097893
public static function transliterate($text, $separator = '-')
    {
        if (preg_match('/[\x80-\xff]/', $text) && self::validUtf8($text)) {
            $text = self::utf8ToAscii($text);
        }

        return  self::postProcessText($text, $separator);
    }
515306
public static function last(string $string, string $separator): string
    {
        $string = explode($separator, $string);
        return Arr::last($string);
    }