src/Security/Hash.php
public static function make($string)
    {
        $key1 = config('security.key1');
        $key2 = config('security.key2');

        return sha1(md5($string.'youssef'.$key1)).md5(sha1($string.'Vinala'.$key2));
    }
public static function make($string)
    {
        $key1 = config('security.key1');
        $key2 = config('security.key2');

        return sha1(md5($string.'youssef'.$key1)).md5(sha1($string.'Vinala'.$key2));
    }
public static function make ( $ string ) { $ key1 = config ( 'security.key1' ) ; $ key2 = config ( 'security.key2' ) ; return sha1 ( md5 ( $ string . 'youssef' . $ key1 ) ) . md5 ( sha1 ( $ string . 'Vinala' . $ key2 ) ) ; }
A function to create a hash string based on another string.

@param string $string

@return simplexml_load_string
A function to create a hash string based on another string .