Skip to content

Commit e748ff6

Browse files
Merge pull request #301 from kinde-oss/Feat/Hashed-passwords
Feat/Sha256 password import
2 parents e1f8a36 + 431eecb commit e748ff6

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

src/content/docs/get-started/switch-to-kinde/switch-to-kinde-for-user-authentication.mdx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,30 @@ The more data that you include for import, the easier we can set up your users i
8080
### Password data (optional)
8181

8282
- `hashed_password` - the user’s password encrypted using a hashing method or algorithm.
83-
- `hashing_method` - the name of the algorithm used to encrypt the user’s password. Currently **crypt**, **bcrypt**, **md5**, and **wordpress** are supported. [Contact us](https://kinde-21631392.hs-sites.com/en-au/feature-request) if you need a different method.
83+
- `hashing_method` - the name of the algorithm used to encrypt the user’s password. Currently **crypt**, **bcrypt**, **sha256**, **md5**, and **wordpress** are supported. [Contact us](https://kinde-21631392.hs-sites.com/en-au/feature-request) if you need a different method.
84+
- `salt` - extra characters added to passwords to make them stronger
85+
- `salt_position` - position of salt in password string. E.g. prefix (before) or suffix (after).
86+
- `salt_format` - format of the salt, e.g. hex, string, etc.
8487

85-
<Aside title="bcrypt $2b variant support:">
88+
<Aside title="bcrypt $2b variant support:">
8689

8790
Please note if you are importing bcrypt hashes with the $2b variant, Kinde will substitute this for the $2a variant. These are interchangeable as long as you were not running OpenBSD at the time the hashes were generated.
8891

89-
</Aside>
92+
</Aside>
9093

91-
- `salt` - extra characters added to passwords to make them stronger
92-
- `salt_position` - position of salt in password string. Prefix (before) or suffix (after).
94+
<Aside title="sha256 support:">
95+
96+
Provide the hash in hex format. Import the salt using the `salt` column. For the `salt_format`, specify how the salt should be interpreted: e.g. **hex** for a hex-encoded string (68656c6c6f for hello). By default, the salt is treated as a plain string, and escape sequences (like \n or \v) are treated as literal characters.
97+
98+
</Aside>
9399

94100
| Hashing method | Salt | Salt position |
95101
| -------------- | -------- | ------------------------- |
96102
| md5 | Optional | required if salt included |
97103
| bcrypt | | |
98104
| crypt | Optional | |
99105
| wordpress | Optional | |
106+
| sha256 | Optional | required if salt included |
100107

101108
### Example CSV
102109

src/content/docs/manage-users/add-and-edit/import-users-in-bulk.mdx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,30 @@ The more data that you include for import, the easier we can set up your users i
9898
### Password data (optional)
9999

100100
- `hashed_password` - the user’s password encrypted using a hashing method or algorithm.
101-
- `hashing_method` - the name of the algorithm used to encrypt the user’s password. Currently **crypt**, **bcrypt**, **md5**, and **wordpress** are supported. [Contact us](https://kinde-21631392.hs-sites.com/en-au/feature-request) if you need a different method.
101+
- `hashing_method` - the name of the algorithm used to encrypt the user’s password. Currently **crypt**, **bcrypt**, **sha256**, **md5**, and **wordpress** are supported. [Contact us](https://kinde-21631392.hs-sites.com/en-au/feature-request) if you need a different method.
102+
- `salt` - extra characters added to passwords to make them stronger
103+
- `salt_position` - position of salt in password string. E.g. prefix (before) or suffix (after).
104+
- `salt_format` - format of the salt, e.g. hex, string, etc.
102105

103-
<Aside title="bcrypt $2b variant support:">
106+
<Aside title="bcrypt $2b variant support:">
104107

105108
Please note if you are importing bcrypt hashes with the $2b variant, Kinde will substitute this for the $2a variant. These are interchangeable as long as you were not running OpenBSD at the time the hashes were generated.
106109

107110
</Aside>
108111

109-
- `salt` - extra characters added to passwords to make them stronger
110-
- `salt_position` - position of salt in password string. Prefix (before) or suffix (after).
112+
<Aside title="sha256 support:">
113+
114+
Provide the hash in hex format. Import the salt using the `salt` column. For the `salt_format`, specify how the salt should be interpreted: e.g. **hex** for a hex-encoded string (68656c6c6f for hello). By default, the salt is treated as a plain string, and escape sequences (like \n or \v) are treated as literal characters.
115+
116+
</Aside>
111117

112118
| Hashing method | Salt | Salt position |
113119
| -------------- | -------- | ------------------------- |
114120
| md5 | Optional | required if salt included |
115121
| bcrypt | | |
116122
| crypt | Optional | |
117123
| wordpress | Optional | |
124+
| sha256 | Optional | required if salt included |
118125

119126
### **Example simple csv import**
120127

0 commit comments

Comments
 (0)