Issue Task Under Review

#108197Add shortcut-method for decrypting

Oliver Hader 11/19/25, 14:32 updated 11/20/26, 19:47

Description

suggested by @supergarv in https://review.typo3.org/c/Packages/TYPO3.CMS/+/91439/comments/dee21c5c_4a205052

$secretKey = $this->keyFactory->deriveSharedKeyFromEncryptionKey('api-tokens');
$cipherValue = CipherValue::fromSerialized('eyJub25jZSI6IktvUkFxbkNMaktoT0Y2a1c5Y04zdklUeFpvd0NhLWhwIiwiY2lwaGVyIjoiN2NxazlaQjZXRDVoOV9PaWVmbFV1UlFLQndVIn0');
$decrypted = $this->cipherService->decrypt($cipherValue, $secretKey);

to be simplified as

$decrypted = $this->cipherService->decryptFromSerialized(   'eyJub25jZSI6IktvUkFxbkNMaktoT0Y2a1c5Y04zdklUeFpvd0NhLWhwIiwiY2lwaGVyIjoiN2NxazlaQjZXRDVoOV9PaWVmbFV1UlFLQndVIn0', 'api-tokens');

Reviews 1

History 24

  1. Gerrit Code Review pushed patch set 1 for main to change 97645 status Accepted Under Review <span data-processor="relativetime" data-value="2026-11-14T12:57:36+00:00" > 11/14/26, 12:57 </span>