src/Security/Hash.php
public static function create($lenght)
    {
        $characters = 'abcdefghijk01234lmnopq56789rstuxyvwz';
        $charLenght = strlen($characters);

        $string = '';
        for ($i = 0; $i < $lenght; $i++) {
            $index = mt_rand(0, $charLenght - 1);
            $string .= $characters[$index];
        }

        return $string;
    }
public static function create($lenght)
    {
        $characters = 'abcdefghijk01234lmnopq56789rstuxyvwz';
        $charLenght = strlen($characters);

        $string = '';
        for ($i = 0; $i < $lenght; $i++) {
            $index = mt_rand(0, $charLenght - 1);
            $string .= $characters[$index];
        }

        return $string;
    }
public static function create ( $ lenght ) { $ characters = 'abcdefghijk01234lmnopq56789rstuxyvwz' ; $ charLenght = strlen ( $ characters ) ; $ string = '' ; for ( $ i = 0 ; $ i < $ lenght ; $ i ++ ) { $ index = mt_rand ( 0 , $ charLenght - 1 ) ; $ string .= $ characters [ $ index ] ; } return $ string ; }
Create a hash string.

@param int $lenght

@return string
Create a hash string .