Skip to content

Commit fe2dd7c

Browse files
committed
remove usage of md5
1 parent 6c3e22c commit fe2dd7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Routes/SolidIdp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public static function respondToRegister() {
117117
}
118118

119119

120-
$generatedClientId = md5(random_bytes(32));
121-
$generatedClientSecret = md5(random_bytes(32));
120+
$generatedClientId = bin2hex(random_bytes(16)); // 32 chars for the client Id
121+
$generatedClientSecret = bin2hex(random_bytes(32)); // and 64 chars for the client secret
122122

123123
$clientData['client_id_issued_at'] = time();
124124
$clientData['client_id'] = $generatedClientId;

0 commit comments

Comments
 (0)