Home > Backend Development > PHP Tutorial > laravel framework session id decryption algorithm laravel auth session laravel session time laravel session none

laravel framework session id decryption algorithm laravel auth session laravel session time laravel session none

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 08:48:43
Original
1297 people have browsed it

$encrypter = new Illuminate\Encryption\Encrypter('qianzhudecangshu');
        $session_filename = $encrypter->decrypt($_COOKIE['cangshu']);
        var_dump($session_filename);exit;
Copy after login

The solution above is a third-party library https://github.com/illuminate/encryption. In fact, it is just a package that relies on laravel’s built-in implementation. It is useless

The following one is a built-in library in laravel 4.1
laravel session domain,laravel session 清空,laravel session 共享,laravel session保存数据,laravel 关闭session,laravel auth session,laravel session 时间,laravel session 无

$b = Crypt::decrypt($_COOKIE['cangshu']);
		dump($b);
		
		$a = Crypt::encrypt('96c65a2077a21ad8e960ba1078641f90e2d93aa1');
		dump($a);
		
		$c = Crypt::decrypt($a);
dump($c);
Copy after login

  • laravel framework session id decryption algorithm laravel auth session laravel session time laravel session none
  • Size: 2.9 KB
  • View image attachment

The above introduces the laravel framework session id decryption algorithm, including laravel and session content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Laravel association model problem
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template