mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 14:31:52 +01:00
Missing file
This commit is contained in:
29
conf/site/vendor/laravel/framework/src/Illuminate/Cookie/CookieValuePrefix.php
vendored
Normal file
29
conf/site/vendor/laravel/framework/src/Illuminate/Cookie/CookieValuePrefix.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Cookie;
|
||||
|
||||
class CookieValuePrefix
|
||||
{
|
||||
/**
|
||||
* Create a new cookie value prefix for the given cookie name.
|
||||
*
|
||||
* @param string $cookieName
|
||||
* @param string $key
|
||||
* @return string
|
||||
*/
|
||||
public static function create($cookieName, $key)
|
||||
{
|
||||
return hash_hmac('sha1', $cookieName.'v2', $key).'|';
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the cookie value prefix.
|
||||
*
|
||||
* @param string $cookieValue
|
||||
* @return string
|
||||
*/
|
||||
public static function remove($cookieValue)
|
||||
{
|
||||
return substr($cookieValue, 41);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user