Assume that you have a cookie string like this:
Q2FrZQ==.AAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCDDDDDDDDDDDDD
How can you decrypt this in cakephp 3 by using AES ?
It seems like Cake\Utility\Security::decrypt($cipher, $key, $hmacSalt = null)
does it:
http://book.cakephp.org/3.0/en/core-libraries/security.html#Cake\Utility\Security::decrypt
But what about the parameters ? hmacSalt
is application's salt value, but what's the key
value in second argument ?