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: docs/janssen-server/config-guide/hash-password.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,41 +2,41 @@
2
2
tags:
3
3
- administration
4
4
- developer
5
-
- confiration
5
+
- configuration
6
6
- Hashed Passwords
7
7
- Entry manager
8
8
---
9
9
10
10
## Hashed Passwords
11
11
12
-
ORM stores users password in DB in hasing form. It supports next hash methods: SHA, SSHA, SHA-256, SSHA-256, SHA-384, SSHA-384, SHA-512, SSHA-512 MD5, SMD5, CRYPT, CRYPT-MD5, CRYPT-SHA-256, CRYPT-SHA-512, CRYPT-BCRYPT $2a$, CRYPT-BCRYPT $2b$, PKCS5S2, ARGON2
12
+
ORM stores users password in DB in hashing form. It supports next hash methods: SHA, SSHA, SHA-256, SSHA-256, SHA-384, SSHA-384, SHA-512, SSHA-512 MD5, SMD5, CRYPT, CRYPT-MD5, CRYPT-SHA-256, CRYPT-SHA-512, CRYPT-BCRYPT $2a$, CRYPT-BCRYPT $2b$, PKCS5S2, ARGON2
13
13
14
14
Support additional hashing methods can be added with [Persistence Extension](../../script-catalog/persistence_extension/persistence/#persistence-script) script.
15
15
16
-
# Hash Passowrd properties
16
+
# Hash Password properties
17
17
18
18
New hash methods like Argon2 supports default hash properties override. This is supported list of properties from `/etc/jans/conf/jans-sql.properties`:
19
19
20
20
```
21
21
# Argon 2 parameters
22
22
# 0 - ARGON2_d, 1 - ARGON2_i, 2 - ARGON2_id
23
-
pasword.method.argon2.type=2
23
+
password.method.argon2.type=2
24
24
# 1.0 - 16, 1.3 - 19
25
-
pasword.method.argon2.version=19
26
-
pasword.method.argon2.salt-length=16
27
-
pasword.method.argon2.memory=7168
28
-
pasword.method.argon2.iterations=5
29
-
pasword.method.argon2.parallelism=1
30
-
pasword.method.argon2.hash-kength=32
25
+
password.method.argon2.version=19
26
+
password.method.argon2.salt-length=16
27
+
password.method.argon2.memory=7168
28
+
password.method.argon2.iterations=5
29
+
password.method.argon2.parallelism=1
30
+
password.method.argon2.hash-length=32
31
31
```
32
32
33
33
After thess properties update `jans-auth` requires restart.
34
34
35
-
# Hash Passowrd format
35
+
# Hash Password format
36
36
37
37
User password value in DB has format {TYPE}{BASE64 encoded hash}
38
38
39
-
Argon2 hashed passwords in DB has simular format. Each passowrd starts from`{ARGON2}` which follows Base64 encoded argon2 password **hash** with **properties**.
39
+
Argon2 hashed passwords in DB has similar format. Each password starts from`{ARGON2}` which follows Base64 encoded argon2 password **hash** with **properties**.
Copy file name to clipboardExpand all lines: jans-orm/sql/src/main/java/io/jans/orm/sql/operation/impl/SqlConnectionProvider.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ public class SqlConnectionProvider {
67
67
privatestaticfinalStringMYSQL_QUERY_CONSTRAINT_CHECK = "SELECT CONSTRAINT_SCHEMA AS TABLE_SCHEMA, TABLE_NAME, CONSTRAINT_NAME, CHECK_CLAUSE AS DEFINITION FROM INFORMATION_SCHEMA.CHECK_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = ? ORDER BY TABLE_SCHEMA, TABLE_NAME";
0 commit comments