Skip to content

Commit a6e07b6

Browse files
authored
Update README.md
1 parent 2321bfd commit a6e07b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ $secret = 'my_very_secret_key';
9898
$expire = 60;
9999
$algo = 'sha256';
100100
$timestamp = date('c');
101-
$stringtosign = "/files/top_secret.pdf{$timestam}{$expire}";
101+
$stringtosign = "/files/top_secret.pdf{$timestamp}{$expire}";
102102
$hashmac = base64_encode(hash_hmac($algo, $stringtosign, $secret, true));
103103
$hashmac = strtr($hashmac, '+/', '-_'));
104104
$hashmac = str_replace('=', '', $hashmac);

0 commit comments

Comments
 (0)