Deprecation: #94309 - Deprecated GeneralUtility::stdAuthCode

See Issue #94309

Description

The method GeneralUtility::stdAuthCode() is unused within TYPO3 Core since at least v9. It internally fiddles with the encryptionKey while using md5(). Furthermore the default length of 8 chars could easily lead to hash collisions. TYPO3 Core already provides GeneralUtility::hmac() for such purposes, which is using sha1 with a length of 40. Therefore, stdAuthCode() has been deprecated and will be removed in TYPO3 v12.

Impact

Calling the method will log a deprecation warning and the method will be dropped with TYPO3 v12.

Affected Installations

All TYPO3 installations calling this method in custom code. The extension scanner will find all usages as strong match.

Migration

Replace all usages of the method in custom extension code by either using GeneralUtility::hmac() or by a custom implementation.