David Goodwin
b726c7aba8
ensure {MD5-CRYPT}$1$ and $1$... are treated the same .. see also #843
2024-07-16 11:16:48 +01:00
David Goodwin
2eb7f34844
try and fix phpunit deprecation warning - assertRegExp => assertMatchesRegularExpression
2024-04-22 21:08:57 +01:00
Shao Yu-Lung (Allen)
0876c368e4
feat: support Dovecot DIGEST-MD5 ( #816 )
...
Add support for dovecot DIGEST-MD5 auth (using : $CONF['pacrypt'] = 'dovecot:DIGEST-MD5')
This also changes the pacrypt() function to take an optional 3rd argument (username).
Thanks @bestlong
2024-04-12 09:57:19 +01:00
David Goodwin
605a019a24
better test coverage - make sure pacrypt() respects php_crypt:MD5 and makes something like $1$.....
2023-03-09 21:57:58 +00:00
David Goodwin
6f3c5a73ad
add unit test for https://github.com/postfixadmin/postfixadmin/issues/647
2022-08-11 20:21:16 +01:00
David Goodwin
bed0300fae
fix tests (pacrypt/{md5raw} etc)
2022-06-23 22:18:16 +01:00
David Goodwin
35486a2ca9
remove dead code
2022-06-06 20:35:53 +01:00
David Goodwin
4bc3e1464c
make sure php_crypt:BLOWFISH works
2021-11-14 20:50:41 +00:00
David Goodwin
598f7db2e7
skip ARGON2ID* things if using an old PHP variant
2021-09-29 21:27:28 +01:00
David Goodwin
91a3dde446
older php variants do not have argon2i
2021-09-29 21:23:18 +01:00
David Goodwin
40101c84d4
fix formatting
2021-09-29 21:10:43 +01:00
David Goodwin
ac13219894
improve test coverage / compatability
2021-09-29 21:05:19 +01:00
David Goodwin
309b4a84aa
get legacy test case to pass
2021-09-29 18:32:46 +01:00
David Goodwin
0b9b7db917
Merge remote-tracking branch 'origin/master' into feature-improve-pacrypt
2021-09-29 18:04:49 +01:00
David Goodwin
561216c83d
composer format
2021-09-25 20:34:32 +01:00
David Goodwin
55e7515c9c
more testings (pacrypt() related)
2021-09-25 20:33:15 +01:00
David Goodwin
179dd4c6e2
try and improve hashing, remove duplicate code, try and cope with the algorithm/method in $pw_db being different from the configured one; add tests
2021-05-11 21:56:48 +01:00
David Goodwin
543285a203
add SSHA format, add some specific courier algorithms, try and partially update docs
2021-05-09 21:31:53 +01:00
David Goodwin
71ee810891
try and implement more hash mechanisms - see e.g. https://github.com/postfixadmin/postfixadmin/issues/479 and https://github.com/postfixadmin/postfixadmin/issues/379
2021-05-08 21:47:45 +01:00
David Goodwin
2edabc3e03
phpcs insists on some brace changes
2021-04-13 21:19:16 +01:00
David Goodwin
823f27b29d
phpcs wants to change ...
2021-03-22 09:28:28 +00:00
David Goodwin
f14deb5426
improve tests
2021-01-18 22:15:56 +00:00
David Goodwin
ff2a7c96d4
update changelog; try and improve tests
2021-01-14 17:07:55 +00:00
David Goodwin
0096a41693
format
2021-01-12 11:00:56 +00:00
David Goodwin
7090b5af75
changes to pacrypt to support a prefix like {SHA265-CRYPT} on a hash - @see https://github.com/postfixadmin/postfixadmin/issues/344
2021-01-12 10:59:25 +00:00
David Goodwin
1c0fd02323
composer format time
2020-03-14 22:34:52 +00:00
David Goodwin
3b9d8f867e
merge sha512.b64 encrypt support - see https://github.com/postfixadmin/postfixadmin/issues/58
2020-03-14 22:30:51 +00:00
David Goodwin
de5b739d4a
drop unnecessary common.php
2019-02-18 21:19:54 +00:00
David Goodwin
69b9d9671c
fix PaCrypt test
2019-02-15 21:31:21 +00:00
David Goodwin
4fcdba9cf4
run php-cs-fixer (code reforamt)
2018-12-28 19:31:43 +00:00
David Goodwin
97528f3ebd
remove var_dumps; fix assertEqual -> assertEquals and other random psalm findings
2018-12-27 13:54:41 +00:00
David Goodwin
93cc4d9e8c
update phpunit tests to use different parent class
2018-12-27 13:14:10 +00:00
David Goodwin
b48f99d4c6
reformat (phpcs)
2018-05-02 12:54:17 +01:00
David Goodwin
2f2730ffa0
add more tests
2018-04-29 21:53:46 +01:00
David Goodwin
b79ad2ae28
composer format ...
2018-02-19 21:01:23 +00:00
David Goodwin
6446f3f6cc
split up pacrypt() into different functions; add some minimal test coverage
2018-02-19 20:59:52 +00:00