Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO #2

Open
ncou opened this issue Jan 8, 2019 · 1 comment
Open

TODO #2

ncou opened this issue Jan 8, 2019 · 1 comment

Comments

@ncou
Copy link
Owner

ncou commented Jan 8, 2019

Improve key derivation :
https://github.com/lambirou/babiphp/blob/master/system/Utils/CryptTrait.php#L131
https://github.com/yiisoft/yii-core/blob/master/src/base/Security.php#L266
https://github.com/narfbg/SimpleEncryption/blob/master/src/Secret.php#L245

https://github.com/defuse/php-encryption/blob/0d4d27c368ca6798bc162469e43248c363c73495/src/KeyOrPassword.php#L58
https://github.com/defuse/php-encryption/blob/0d4d27c368ca6798bc162469e43248c363c73495/src/Crypto.php#L257

https://github.com/fuel/core/blob/0a7931b9acd9b6cbb7abca393c5044b04668f596/classes/crypt.php

Check openssl module :

if (!extension_loaded('openssl')) {
throw new InvalidConfigException('Encryption requires the OpenSSL PHP extension');
}
Vérifier que la méthode random_bytes() existe (car elle date de php 7.0). idem pour la méthode mb_substr() qui doit avoir l'extension d'installé !!!

@ncou
Copy link
Owner Author

ncou commented Nov 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant