Skip to content

Commit 5c702ed

Browse files
committed
hashing -> hash
1 parent 874564d commit 5c702ed

25 files changed

Lines changed: 38 additions & 38 deletions

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88
### Added
9-
- SHA512 Whirlpool hashing algorithm
10-
- WoltLab Community Framework 2.x hashing algorithm
11-
- phpass hashing implementation
9+
- SHA512 Whirlpool hash algorithm
10+
- WoltLab Community Framework 2.x hash algorithm
11+
- phpass hash implementation
1212
- Support for salt column
1313

1414
### Changed
@@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2626

2727
## [4.0.0-rc1] - 2018-06-13
2828
### Added
29-
- New hashing algorithms: Argon2 Crypt (PHP 7.2 and above), Blowfish Crypt, Courier base64-encoded MD5, Courier base64-encoded SHA1, Courier base64-encoded SHA256, Courier hexadecimal MD5, Extended DES Crypt, SHA256 Crypt, SHA512 Crypt, SSHA512, Standard DES Crypt
29+
- New hash algorithms: Argon2 Crypt (PHP 7.2 and above), Blowfish Crypt, Courier base64-encoded MD5, Courier base64-encoded SHA1, Courier base64-encoded SHA256, Courier hexadecimal MD5, Extended DES Crypt, SHA256 Crypt, SHA512 Crypt, SSHA512, Standard DES Crypt
3030
- Option to allow users to change their display names
3131
- Option to allow user to change its avatar
3232
- Database query results cache
@@ -38,9 +38,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3838
- Minimum supported PHP version - 7.0
3939

4040
### Removed
41-
- MySQL ENCRYPT() hashing implementation - Function is deprecated as of MySQL 5.7.6 and will be removed in a future MySQL release.
42-
- MySQL PASSWORD() hashing implementation - Function is deprecated as of MySQL 5.7.6 and will be removed in a future MySQL release.
43-
- Redmine hashing implementation - Cannot implement in new core system.
41+
- MySQL ENCRYPT() hash implementation - Function is deprecated as of MySQL 5.7.6 and will be removed in a future MySQL release.
42+
- MySQL PASSWORD() hash implementation - Function is deprecated as of MySQL 5.7.6 and will be removed in a future MySQL release.
43+
- Redmine hash implementation - Cannot implement in new core system.
4444
- User active column - Use database view instead
4545
- Domain support
4646

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Name | Description | Details
5050
**Allow display name change** | With this option enabled user can change its display name. The display name change is propagated to the database. | Optional.<br/>Default: false.<br/>Requires: user *Display name* column.
5151
**Allow password change** | Can user change its password. The password change is propagated to the database. See [Hash algorithms](#hash-algorithms). | Optional.<br/>Default: false.
5252
**Use cache** | Use database query results cache. The cache can be cleared any time with the *Clear cache* button click. | Optional.<br/>Default: false.
53-
**Hashing algorithm** | How users passwords are stored in the database. See [Hash algorithms](#hash-algorithms). | Mandatory.
53+
**Hash algorithm** | How users passwords are stored in the database. See [Hash algorithms](#hash-algorithms). | Mandatory.
5454
**Email sync** | Sync e-mail address with the Nextcloud.<br/>- *None* - Disables this feature. This is the default option.<br/>- *Synchronise only once* - Copy the e-mail address to the Nextcloud storage if its not set.<br/>- *Nextcloud always wins* - Always copy the e-mail address to the database. This updates the user table.<br/>- *SQL always wins* - Always copy the e-mail address to the Nextcloud storage. | Optional.<br/>Default: *None*.<br/>Requires: user *Email* column.
5555
**Home mode** | User storage path.<br/>- *Default* - Let the Nextcloud manage this. The default option.<br/>- *Query* - Use location from the user table pointed by the *home* column.<br/>- *Static* - Use static location. The `%u` variable is replaced with the username of the user. | Optional<br/>Default: *Default*.
5656
**Home Location** | User storage path for the `static` *home mode*. | Mandatory if the *Home mode* is set to `Static`.
@@ -146,7 +146,7 @@ User table: wp_users
146146
Username column: user_login
147147
Password column: user_pass
148148
149-
Hashing algorithm: Unix (Crypt) or Portable PHP password
149+
Hash algorithm: Unix (Crypt) or Portable PHP password
150150
```
151151

152152
#### JHipster
@@ -163,7 +163,7 @@ Password column: password_hash
163163
Email column: email
164164
Active column: activated
165165
166-
Hashing algorithm: Unix (Crypt)
166+
Hash algorithm: Unix (Crypt)
167167
```
168168

169169
## Hash algorithms
@@ -203,7 +203,7 @@ Add a new class in the `OCA\UserSQL\Platform` namespace which extends the `Abstr
203203
Add this driver in `admin.php` template to `$drivers` variable and in method `getPlatform(Connection $connection)`
204204
of `PlatformFactory` class.
205205

206-
#### New hashing algorithm support
206+
#### New hash algorithm support
207207

208208
Create a new class in `OCA\UserSQL\Crypto` namespace which implements `IPasswordAlgorithm` interface.
209209
Do not forget to write unit tests.

lib/Crypto/AbstractCrypt.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
namespace OCA\UserSQL\Crypto;
2323

2424
/**
25-
* Abstract Unix Crypt hashing implementation.
26-
* The hashing algorithm depends on the chosen salt.
25+
* Abstract Unix Crypt hash implementation.
26+
* The hash algorithm depends on the chosen salt.
2727
*
2828
* @see crypt()
2929
* @author Marcin Łojewski <dev@mlojewski.me>
@@ -52,7 +52,7 @@ public function getPasswordHash($password)
5252
}
5353

5454
/**
55-
* Generate a salt string for the hashing algorithm.
55+
* Generate a salt string for the hash algorithm.
5656
*
5757
* @return string The salt string.
5858
*/

lib/Crypto/CourierMD5.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OCP\IL10N;
2525

2626
/**
27-
* Courier MD5 hashing implementation.
27+
* Courier MD5 hash implementation.
2828
*
2929
* @author Marcin Łojewski <dev@mlojewski.me>
3030
*/

lib/Crypto/CourierMD5Raw.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OCP\IL10N;
2525

2626
/**
27-
* Courier MD5 RAW hashing implementation.
27+
* Courier MD5 RAW hash implementation.
2828
*
2929
* @author Marcin Łojewski <dev@mlojewski.me>
3030
*/

lib/Crypto/CourierSHA1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OCP\IL10N;
2525

2626
/**
27-
* Courier SHA1 hashing implementation.
27+
* Courier SHA1 hash implementation.
2828
*
2929
* @author Marcin Łojewski <dev@mlojewski.me>
3030
*/

lib/Crypto/CourierSHA256.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OCP\IL10N;
2525

2626
/**
27-
* Courier SHA256 hashing implementation.
27+
* Courier SHA256 hash implementation.
2828
*
2929
* @author Marcin Łojewski <dev@mlojewski.me>
3030
*/

lib/Crypto/Crypt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OCP\IL10N;
2525

2626
/**
27-
* Unix Crypt hashing implementation.
27+
* Unix Crypt hash implementation.
2828
*
2929
* @see crypt()
3030
* @author Marcin Łojewski <dev@mlojewski.me>

lib/Crypto/CryptArgon2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OCP\IL10N;
2525

2626
/**
27-
* Argon2 Crypt hashing implementation.
27+
* Argon2 Crypt hash implementation.
2828
*
2929
* @see crypt()
3030
* @author Marcin Łojewski <dev@mlojewski.me>

lib/Crypto/CryptBlowfish.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OCP\IL10N;
2525

2626
/**
27-
* Blowfish Crypt hashing implementation.
27+
* Blowfish Crypt hash implementation.
2828
*
2929
* @see crypt()
3030
* @author Marcin Łojewski <dev@mlojewski.me>

0 commit comments

Comments
 (0)