Skip to content

Commit 168958c

Browse files
authored
Change HS256 to HS512, and remove json example
1 parent e36a06c commit 168958c

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

encode.php

+1-14
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,5 @@
77

88
// plain text
99
$data = "Hello, World!";
10-
$jwt = JWT::encode($data, $key, 'HS256');
11-
print $jwt."\n";
12-
13-
// JSON
14-
$data=[
15-
"status"=>"success",
16-
"data1"=>"test1",
17-
"data2"=>"test2",
18-
"data3"=>"test3",
19-
"data4"=>"test4",
20-
"data5"=>"test5",
21-
];
22-
$data = json_encode($data);
23-
$jwt = JWT::encode($data, $key, 'HS256');
10+
$jwt = JWT::encode($data, $key, 'HS512');
2411
print $jwt."\n";

0 commit comments

Comments
 (0)