Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 5, 2018 9:22 AM
Views: 16
Tags: encode token uri
  1. $key = 'key_here';
  2. $valid_token = strtr(base64_encode(hash_hmac('sha256', $url, $key, 1)), '/+' , '_-');