[FEATURE] Add a CSPRNG 07/46507/7
authorChristian Futterlieb <christian@futterlieb.ch>
Sun, 31 Jan 2016 20:09:20 +0000 (21:09 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 5 Mar 2016 16:53:15 +0000 (17:53 +0100)
commit5bc1aed17b811a3f58bb50f37dbb1cf903593d4f
tree3aaca0bc257b887fb725f3c72ee312108d4de75c
parent56069733bb63c1bf7a76d27f981c762d488470b7
[FEATURE] Add a CSPRNG

* Add a simple API for generation of random bytes, integers and
  hex-strings: Crypto\Random
* Deprecate the methods GeneralUtility::generateRandomBytes() and
  GeneralUtility::getRandomHexString()
* Replace occurrences of the deprecated methods

Change-Id: If4d6daa00138eac791954a4fd9a4fc26a79ddf07
Resolves: #73050
Releases: master
Reviewed-on: https://review.typo3.org/46507
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
21 files changed:
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
typo3/sysext/core/Classes/Crypto/Random.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/PreparedStatement.php
typo3/sysext/core/Classes/FormProtection/AbstractFormProtection.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-73050-DeprecatedRandomGeneratorMethodsInGeneralUtility.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-73050-AddACSPRNGAPI.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Crypto/RandomTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php
typo3/sysext/frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php
typo3/sysext/install/Classes/Controller/Action/Tool/ImportantActions.php
typo3/sysext/install/Classes/Service/SilentConfigurationUpgradeService.php
typo3/sysext/saltedpasswords/Classes/Salt/Md5Salt.php
typo3/sysext/saltedpasswords/Classes/Salt/Pbkdf2Salt.php
typo3/sysext/saltedpasswords/Classes/Salt/PhpassSalt.php
typo3/sysext/saltedpasswords/Tests/Unit/Salt/BlowfishSaltTest.php
typo3/sysext/saltedpasswords/Tests/Unit/Salt/Md5SaltTest.php
typo3/sysext/saltedpasswords/Tests/Unit/Salt/Pbkdf2SaltTest.php
typo3/sysext/saltedpasswords/Tests/Unit/Salt/PhpassSaltTest.php
typo3/sysext/saltedpasswords/Tests/Unit/Salt/SaltFactoryTest.php