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
SplitToken provides a Token-Based Authentication Protocol without Side-Channels.
5
5
6
-
This technique is based of [Split Tokens: Token-Based Authentication Protocols without Side-Channels](https://paragonie.com/blog/2017/02/split-tokens-token-based-authentication-protocols-without-side-channels).
6
+
This technique is based of [Split Tokens: Token-Based Authentication Protocols without Side-Channels].
7
+
Which was first proposed by Paragon Initiative Enterprises.
7
8
8
9
SplitToken-Based Authentication is best used for password resetting or one-time
9
-
single-logon.
10
+
single-logon.
10
11
11
-
While possible, this technique is not recommended as a replacement for
12
+
While possible, this technique is not recommended as a replacement for
12
13
OAuth or Json Web Tokens.
13
14
14
15
## Introduction
@@ -22,45 +23,35 @@ of two parts: The **selector** (used in the query) and the **verifier**
22
23
23
24
* The verifier works as a password and is only provided to the user,
24
25
the database only holds a salted (cryptographic) hash of the verifier.
25
-
26
+
26
27
The length of this value is heavily dependent on the used hashing algorithm
27
28
and should not be hardcoded.
28
-
29
-
The full token is provided to the user or recipient and functions as a combined
29
+
30
+
The full token is provided to the user or recipient and functions as a combined
30
31
identifier (selector) and password (verifier).
31
32
32
33
**Caution: You NEVER store the full token as-is!** You only store the selector,
33
34
and a (cryptographic) hash of the verifier.
34
35
35
-
## Requirements
36
-
37
-
PHP 7.2 with the (lib)sodium extension enabled.
38
-
39
36
## Installation
40
37
41
-
To install this package, add `rollerworks/split-token` to your composer.json
38
+
To install this package, add `rollerworks/split-token` to your composer.json:
0 commit comments