salt = (is_null($salt)) ? Str::random(16) : $salt; $this->value = sha1($value.$this->salt); } /** * Factory for creating hash instances. * * @access public * @param string $value * @param string $salt * @return Hash */ public static function make($value, $salt = null) { return new self($value, $salt); } }