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
+41-7Lines changed: 41 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,47 @@
1
1
# Argon2 for Delphi
2
2
3
-
Argon2 is a password hashing function. It was selected as the winner of Google's [Password Hashing Competition](https://password-hashing.net/) in 2015.
3
+
[Argon2](https://en.wikipedia.org/wiki/Argon2) is a key derivation function. It is designed to take a password (and some salt), and generate a desired number of pseudo-random bytes. Like *scrypt*, it is also *memory hard*, meaning it is designed thwart implementations on ASICs and GPUs. It was selected as the winner of Google's [Password Hashing Competition](https://password-hashing.net/) in 2015.
4
4
5
-
This code is licensed under public domain **Unlicense**. One of the virtues of this license is that if you don't like the license, you can change the license to whatever you want. This means that if you are too stupid to understand what *public domain* means, you get to pick any other license:
| v=19 | Decimal coded version | Default is 0x13, which is 19 decimal |
32
+
| m=65536 | Memory size in KiB | Valid range: 8*Parallelism .. 0x7fffffff, and must be a power of two |
33
+
| p=4 | Parallelization Factor | 1-0x00ffffff |
34
+
| salt | base64 encoded salt | 0-16 bytes decoded |
35
+
| hash | base64 encoded hash | 64-bytes |
36
+
37
+
Because the four argon parameters are stored in the returned string, argon2 password hashes are backwards and forwards compatible with changing the factors. It also makes Argon2 extraordinarily convenient, in that a random salt is automatically generated and stored for you (you don't have to worry about storing it in a database or retrieving it).
38
+
39
+
40
+
This code is licensed under public domain **Unlicense**.
41
+
42
+
-----------------
43
+
44
+
One of the virtues of the Unlicense license is that if you don't like the license, you can change the license to whatever you want. This means that if you don't like the license, you are free to pick any other license you prefer (or your company or country understands):
6
45
7
46
- unlicense license
8
47
- DWTFYW license
@@ -11,8 +50,3 @@ This code is licensed under public domain **Unlicense**. One of the virtues of t
11
50
- LGPL
12
51
- MIT
13
52
- Copyleft
14
-
15
-
For those of you who are *still* to dumb to understand what *public domain* means, I can officially and legally tell you:
16
-
17
-
- you're a moron
18
-
- this code is officially licensed under a hept-license (kinda like *dual* license; but seven): you can pick whichever what your corporate pea-brains understand.
0 commit comments