You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
[](https://packagist.org/packages/chr15k/php-auth-generator)[](https://packagist.org/packages/chr15k/php-auth-generator)[](https://packagist.org/packages/chr15k/php-auth-generator)[](https://packagist.org/packages/chr15k/php-auth-generator)[](https://packagist.org/packages/chr15k/php-auth-generator)
4
4
5
-
A PHP library that focuses exclusively on **generating** HTTP authentication tokens, including Basic Auth, Bearer tokens, and JWTs with a fluent API. Built with zero dependencies, it's lightweight and adds token creation capabilities without bloating your project.
5
+
A PHP library that focuses exclusively on **generating** HTTP authentication tokens, including Basic Auth, Bearer tokens, Digest Auth, and JWTs with a fluent API. Built with zero dependencies, it's lightweight and adds token creation capabilities without bloating your project.
6
6
7
7
> [!IMPORTANT]
8
8
> This package is designed solely for **generating** authentication tokens. It does not include any token decoding, validation, or verification functionality.
Digest Authentication is an authentication mechanism that improves upon Basic Authentication by avoiding sending the password in plaintext over the network. It uses a challenge-response mechanism and MD5 cryptographic hashing.
103
+
Digest Authentication is an authentication mechanism that improves upon Basic Authentication by avoiding sending the password in plaintext over the network. It uses a challenge-response mechanism and cryptographic hashing (MD5 or SHA-256).
104
+
105
+
The Digest authentication process typically involves:
106
+
1. A server challenge containing a nonce value
107
+
2. A client response with a cryptographic hash that proves password knowledge without revealing it
108
+
3. The response includes various components like realm, nonce, URI, and algorithm details
109
+
110
+
This implementation provides a convenient way to generate properly formatted Digest Auth tokens for HTTP requests. It supports all RFC 2617 and RFC 7616 algorithm variants including MD5, MD5-sess, SHA-256, and SHA-256-sess.
0 commit comments